summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/create/15.2.3.5-4-252.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-252.js')
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-252.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-252.js b/test/built-ins/Object/create/15.2.3.5-4-252.js
index a83e2bd45..e5cd76b90 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-252.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-252.js
@@ -7,22 +7,14 @@ description: >
Object.create - one property in 'Properties' is the JSON object
that uses Object's [[Get]] method to access the 'get' property
(8.10.5 step 7.a)
-includes: [runTestCase.js]
---*/
-function testcase() {
JSON.get = function () {
return "VerifyJSONObject";
};
- try {
var newObj = Object.create({}, {
prop: JSON
});
- return newObj.prop === "VerifyJSONObject";
- } finally {
- delete JSON.get;
- }
- }
-runTestCase(testcase);
+assert.sameValue(newObj.prop, "VerifyJSONObject", 'newObj.prop');