diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js index d5b1212f6..2ee6e1792 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-89-1.js @@ -7,12 +7,10 @@ description: > Object.defineProperty - 'Attributes' is a Boolean object that uses Object's [[Get]] method to access the 'configurable' property (8.10.5 step 4.a) -includes: [runTestCase.js] ---*/ -function testcase() { var obj = {}; - try { + Boolean.prototype.configurable = true; var boolObj = new Boolean(true); @@ -24,9 +22,5 @@ function testcase() { var afterDeleted = obj.hasOwnProperty("property"); - return beforeDeleted === true && afterDeleted === false; - } finally { - delete Boolean.prototype.configurable; - } - } -runTestCase(testcase); +assert.sameValue(beforeDeleted, true, 'beforeDeleted'); +assert.sameValue(afterDeleted, false, 'afterDeleted'); |