diff options
Diffstat (limited to 'test/language/expressions/compound-assignment/11.13.2-6-8-s.js')
-rw-r--r-- | test/language/expressions/compound-assignment/11.13.2-6-8-s.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/language/expressions/compound-assignment/11.13.2-6-8-s.js b/test/language/expressions/compound-assignment/11.13.2-6-8-s.js index 66519aa72..f67a3b7ff 100644 --- a/test/language/expressions/compound-assignment/11.13.2-6-8-s.js +++ b/test/language/expressions/compound-assignment/11.13.2-6-8-s.js @@ -8,16 +8,10 @@ description: > as the LeftHandSideExpression of a Compound Assignment operator(>>>=) flags: [onlyStrict] -includes: [runTestCase.js] ---*/ -function testcase() { var blah = eval; - try { +assert.throws(SyntaxError, function() { eval("eval >>>= 20;"); - return false; - } catch (e) { - return e instanceof SyntaxError && blah === eval; - } - } -runTestCase(testcase); +}); +assert.sameValue(blah, eval, 'blah'); |