diff options
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-45.js')
-rw-r--r-- | test/built-ins/Object/create/15.2.3.5-4-45.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-45.js b/test/built-ins/Object/create/15.2.3.5-4-45.js index 0f07634c3..653c33ccb 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-45.js +++ b/test/built-ins/Object/create/15.2.3.5-4-45.js @@ -6,18 +6,11 @@ es5id: 15.2.3.5-4-45 description: > Object.create - value of one property in 'Properties' is a string (8.10.5 step 1) -includes: [runTestCase.js] ---*/ -function testcase() { - try { +assert.throws(TypeError, function() { Object.create({}, { prop: "abc" }); - return false; - } catch (e) { - return (e instanceof TypeError); - } - } -runTestCase(testcase); +}); |