diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js index 0ac85bc90..bd586b4b1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-170-1.js @@ -7,13 +7,10 @@ description: > Object.defineProperty - 'Attributes' is the Math object that uses Object's [[Get]] method to access the 'writable' property of prototype object (8.10.5 step 6.b) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = {}; - try { Object.prototype.writable = true; Object.defineProperty(obj, "property", Math); @@ -24,9 +21,5 @@ function testcase() { var afterWrite = (obj.property === "isWritable"); - return beforeWrite === true && afterWrite === true; - } finally { - delete Object.prototype.writable; - } - } -runTestCase(testcase); +assert.sameValue(beforeWrite, true, 'beforeWrite'); +assert.sameValue(afterWrite, true, 'afterWrite'); |