summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/create/15.2.3.5-4-199.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-199.js')
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-199.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-199.js b/test/built-ins/Object/create/15.2.3.5-4-199.js
index 77afd18ae..b0d111992 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-199.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-199.js
@@ -7,12 +7,8 @@ description: >
Object.create - one property in 'Properties' is the JSON object
that uses Object's [[Get]] method to access the 'writable'
property (8.10.5 step 6.a)
-includes: [runTestCase.js]
---*/
-function testcase() {
-
- try {
JSON.writable = true;
var newObj = Object.create({}, {
@@ -25,9 +21,5 @@ function testcase() {
var afterWrite = (newObj.prop === "isWritable");
- return beforeWrite === true && afterWrite === true;
- } finally {
- delete JSON.writable;
- }
- }
-runTestCase(testcase);
+assert.sameValue(beforeWrite, true, 'beforeWrite');
+assert.sameValue(afterWrite, true, 'afterWrite');