diff options
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js index fd15eac75..bab103cc6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-24.js @@ -7,15 +7,11 @@ description: > Object.defineProperties - 'descObj' is the Math object which implements its own [[Get]] method to get 'enumerable' property (8.10.5 step 3.a) -includes: [runTestCase.js] ---*/ -function testcase() { - var obj = {}; var accessed = false; - try { Math.enumerable = true; Object.defineProperties(obj, { @@ -26,9 +22,5 @@ function testcase() { accessed = true; } } - return accessed; - } finally { - delete Math.enumerable; - } - } -runTestCase(testcase); + +assert(accessed, 'accessed !== true'); |