diff options
Diffstat (limited to 'test/language/expressions/delete/11.4.1-4.a-9-s.js')
-rw-r--r-- | test/language/expressions/delete/11.4.1-4.a-9-s.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/test/language/expressions/delete/11.4.1-4.a-9-s.js b/test/language/expressions/delete/11.4.1-4.a-9-s.js index 197d0769e..f4cefb2ca 100644 --- a/test/language/expressions/delete/11.4.1-4.a-9-s.js +++ b/test/language/expressions/delete/11.4.1-4.a-9-s.js @@ -10,16 +10,9 @@ description: > delete operator throws TypeError when deleting a non-configurable data property (Math.LN2) in strict mode flags: [onlyStrict] -includes: [runTestCase.js] ---*/ -function testcase() { - try { + +assert.throws(TypeError, function() { delete Math.LN2; - return false; - } - catch (e) { - return (e instanceof TypeError); - } - } -runTestCase(testcase); +}); |