diff options
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-1-3.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-1-3.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js b/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js index eeb85855e..0974b1a06 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-1-3.js @@ -4,16 +4,8 @@ /*--- es5id: 15.2.3.7-1-3 description: Object.defineProperties throws TypeError if 'O' is a boolean -includes: [runTestCase.js] ---*/ -function testcase() { - - try { +assert.throws(TypeError, function() { Object.defineProperties(true, {}); - return false; - } catch (e) { - return (e instanceof TypeError); - } - } -runTestCase(testcase); +}); |