summaryrefslogtreecommitdiff
path: root/test/language/expressions/object/11.1.5_6-2-1-s.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/language/expressions/object/11.1.5_6-2-1-s.js')
-rw-r--r--test/language/expressions/object/11.1.5_6-2-1-s.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/language/expressions/object/11.1.5_6-2-1-s.js b/test/language/expressions/object/11.1.5_6-2-1-s.js
index 589a2075e..65035c0ea 100644
--- a/test/language/expressions/object/11.1.5_6-2-1-s.js
+++ b/test/language/expressions/object/11.1.5_6-2-1-s.js
@@ -7,11 +7,10 @@ description: >
Strict Mode - SyntaxError is thrown when an assignment to a
reserved word or a future reserved word is contained in strict code
flags: [onlyStrict]
-includes: [runTestCase.js]
---*/
-function testcase() {
- try {
+
+assert.throws(SyntaxError, function() {
eval("var obj = {\
get _11_1_5_6_2_1() {\
public = 42;\
@@ -20,9 +19,4 @@ function testcase() {
};");
var _11_1_5_6_2_1 = obj._11_1_5_6_2_1;
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+});