Reviewers: rossberg_chromium.orh, Rick Waldron,
Message:
PTAL
Description:
Fix test for function declarations syntax error.
[email protected],[email protected]
BUG=v8:3939
LOG=N
Please review this at https://codereview.chromium.org/964063003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+8, -8 lines):
M test/mjsunit/harmony/block-let-declaration.js
Index: test/mjsunit/harmony/block-let-declaration.js
diff --git a/test/mjsunit/harmony/block-let-declaration.js
b/test/mjsunit/harmony/block-let-declaration.js
index
44a0049a44e3d7dc137e407c6e0f2c45de284600..b13cc6a9e73c0a456e76cd9de17493857e1faf8b
100644
--- a/test/mjsunit/harmony/block-let-declaration.js
+++ b/test/mjsunit/harmony/block-let-declaration.js
@@ -149,11 +149,11 @@ function f() {
f();
// Test function declarations in statement position in strict mode.
-TestLocalThrows("function f() { if (true) function g() {}", SyntaxError);
-TestLocalThrows("function f() { if (true) {} else function g() {}",
SyntaxError);
-TestLocalThrows("function f() { do function g() {} while (false)",
SyntaxError);
-TestLocalThrows("function f() { while (false) function g() {}",
SyntaxError);
-TestLocalThrows("function f() { label: function g() {}", SyntaxError);
-TestLocalThrows("function f() { for (;false;) function g() {}",
SyntaxError);
-TestLocalThrows("function f() { switch (true) { case true: function g() {}
}", SyntaxError);
-TestLocalThrows("function f() { switch (true) { default: function g() {}
}", SyntaxError);
+TestLocalThrows("function f() { if (true) function g() {} }", SyntaxError);
+TestLocalThrows("function f() { if (true) {} else function g() {} }",
SyntaxError);
+TestLocalThrows("function f() { do function g() {} while (false) }",
SyntaxError);
+TestLocalThrows("function f() { while (false) function g() {} }",
SyntaxError);
+TestLocalThrows("function f() { label: function g() {} }", SyntaxError);
+TestLocalThrows("function f() { for (;false;) function g() {} }",
SyntaxError);
+TestLocalThrows("function f() { switch (true) { case true: function g() {}
} }", SyntaxError);
+TestLocalThrows("function f() { switch (true) { default: function g() {} }
}", SyntaxError);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.