Disallow newline after throw

Closes #11
This commit is contained in:
Marijn Haverbeke
2012-10-18 15:50:07 +02:00
parent daefc220da
commit 6b52dc8a84
3 changed files with 6 additions and 3 deletions

View File

@@ -26269,9 +26269,6 @@ testFail("throw",
testFail("throw;",
"Unexpected token (1:5)");
testFail("throw\n",
"Unexpected token (2:0)");
testFail("for (var i, i2 in {});",
"Unexpected token (1:15)");
@@ -26603,3 +26600,5 @@ testFail("(function a(package) { \"use strict\"; })",
"Defining 'package' in strict mode (1:12)");
testFail("var this = 10;", "Unexpected token (1:4)");
testFail("throw\n10;", "Illegal newline after throw (1:5)");