diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-17.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-3-17.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js index 21e9cf4d2..855ddf4b2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-17.js @@ -6,16 +6,8 @@ es5id: 15.2.3.6-3-17 description: > Object.defineProperty - 'Attributes' is a boolean primitive (8.10.5 step 1) -includes: [runTestCase.js] ---*/ -function testcase() { - - try { +assert.throws(TypeError, function() { Object.defineProperty({}, "property", true); - return false; - } catch (e) { - return e instanceof TypeError; - } - } -runTestCase(testcase); +}); |