summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js
index f62fc229e..a385748a7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-36-1.js
@@ -7,13 +7,11 @@ description: >
Object.defineProperty - 'Attributes' is a Boolean object that uses
Object's [[Get]] method to access the 'enumerable' property of
prototype object (8.10.5 step 3.a)
-includes: [runTestCase.js]
---*/
-function testcase() {
var obj = {};
var accessed = false;
- try {
+
Boolean.prototype.enumerable = true;
var boolObj = new Boolean(true);
@@ -25,9 +23,4 @@ function testcase() {
}
}
- return accessed;
- } finally {
- delete Boolean.prototype.enumerable;
- }
- }
-runTestCase(testcase);
+assert(accessed, 'accessed !== true');