aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/es6/templates.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/es6/templates.js')
-rw-r--r--deps/v8/test/mjsunit/es6/templates.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/deps/v8/test/mjsunit/es6/templates.js b/deps/v8/test/mjsunit/es6/templates.js
index 3e113cb829..3da06b2b0f 100644
--- a/deps/v8/test/mjsunit/es6/templates.js
+++ b/deps/v8/test/mjsunit/es6/templates.js
@@ -725,20 +725,20 @@ var global = this;
(function testTaggedTemplateInvalidAssignmentTargetStrict() {
"use strict";
function f() {}
- assertThrows(() => Function("++f`foo`"), ReferenceError);
- assertThrows(() => Function("f`foo`++"), ReferenceError);
- assertThrows(() => Function("--f`foo`"), ReferenceError);
- assertThrows(() => Function("f`foo`--"), ReferenceError);
- assertThrows(() => Function("f`foo` = 1"), ReferenceError);
+ assertThrows(() => Function("++f`foo`"), SyntaxError);
+ assertThrows(() => Function("f`foo`++"), SyntaxError);
+ assertThrows(() => Function("--f`foo`"), SyntaxError);
+ assertThrows(() => Function("f`foo`--"), SyntaxError);
+ assertThrows(() => Function("f`foo` = 1"), SyntaxError);
})();
(function testTaggedTemplateInvalidAssignmentTargetSloppy() {
function f() {}
- assertThrows(() => Function("++f`foo`"), ReferenceError);
- assertThrows(() => Function("f`foo`++"), ReferenceError);
- assertThrows(() => Function("--f`foo`"), ReferenceError);
- assertThrows(() => Function("f`foo`--"), ReferenceError);
- assertThrows(() => Function("f`foo` = 1"), ReferenceError);
+ assertThrows(() => Function("++f`foo`"), SyntaxError);
+ assertThrows(() => Function("f`foo`++"), SyntaxError);
+ assertThrows(() => Function("--f`foo`"), SyntaxError);
+ assertThrows(() => Function("f`foo`--"), SyntaxError);
+ assertThrows(() => Function("f`foo` = 1"), SyntaxError);
})();
// Disable eval caching if a tagged template occurs in a nested function