summaryrefslogtreecommitdiff
path: root/test/language/expressions/delete/11.4.1-5-a-6-s.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/language/expressions/delete/11.4.1-5-a-6-s.js')
-rw-r--r--test/language/expressions/delete/11.4.1-5-a-6-s.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/language/expressions/delete/11.4.1-5-a-6-s.js b/test/language/expressions/delete/11.4.1-5-a-6-s.js
index 4a4cd5ee0..1d30df158 100644
--- a/test/language/expressions/delete/11.4.1-5-a-6-s.js
+++ b/test/language/expressions/delete/11.4.1-5-a-6-s.js
@@ -7,17 +7,9 @@ description: >
Strict Mode - SyntaxError is thrown when deleting a variable which
is a primitive type (string)
flags: [onlyStrict]
-includes: [runTestCase.js]
---*/
-function testcase() {
var _11_4_1_5 = "abc";
-
- try {
+assert.throws(SyntaxError, function() {
eval("delete _11_4_1_5;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+});