diff options
Diffstat (limited to 'test/language/expressions/delete/11.4.1-5-a-12-s.js')
-rw-r--r-- | test/language/expressions/delete/11.4.1-5-a-12-s.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/language/expressions/delete/11.4.1-5-a-12-s.js b/test/language/expressions/delete/11.4.1-5-a-12-s.js index e29240876..1b6c4d62b 100644 --- a/test/language/expressions/delete/11.4.1-5-a-12-s.js +++ b/test/language/expressions/delete/11.4.1-5-a-12-s.js @@ -7,17 +7,9 @@ description: > Strict Mode - SyntaxError is thrown when deleting a variable of type Boolean flags: [onlyStrict] -includes: [runTestCase.js] ---*/ -function testcase() { var boolObj = new Boolean(false); - - try { +assert.throws(SyntaxError, function() { eval("delete boolObj;"); - return false; - } catch (e) { - return e instanceof SyntaxError; - } - } -runTestCase(testcase); +}); |