diff options
Diffstat (limited to 'deps/v8/test/mjsunit/es7/exponentiation-operator.js')
-rw-r--r-- | deps/v8/test/mjsunit/es7/exponentiation-operator.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/deps/v8/test/mjsunit/es7/exponentiation-operator.js b/deps/v8/test/mjsunit/es7/exponentiation-operator.js index 9d934bdaac..2c504a9f1e 100644 --- a/deps/v8/test/mjsunit/es7/exponentiation-operator.js +++ b/deps/v8/test/mjsunit/es7/exponentiation-operator.js @@ -264,13 +264,13 @@ function TestOverrideMathPow() { TestOverrideMathPow(); function TestBadAssignmentLHS() { - assertThrows("if (false) { 17 **= 10; }", ReferenceError); - assertThrows("if (false) { '17' **= 10; }", ReferenceError); - assertThrows("if (false) { /17/ **= 10; }", ReferenceError); + assertThrows("if (false) { 17 **= 10; }", SyntaxError); + assertThrows("if (false) { '17' **= 10; }", SyntaxError); + assertThrows("if (false) { /17/ **= 10; }", SyntaxError); assertThrows("if (false) { ({ valueOf() { return 17; } } **= 10); }", - ReferenceError); - // TODO(caitp): a Call expression as LHS should be an early ReferenceError! - // assertThrows("if (false) { Array() **= 10; }", ReferenceError); + SyntaxError); + // TODO(caitp): a Call expression as LHS should be an early SyntaxError! + // assertThrows("if (false) { Array() **= 10; }", SyntaxError); assertThrows(() => Array() **= 10, ReferenceError); } TestBadAssignmentLHS(); |