Strict mode incorrectly reset after function

This commit is contained in:
r-e-d
2014-09-30 10:58:21 +02:00
committed by Marijn Haverbeke
parent 015a0e90bc
commit f3e759cd03
2 changed files with 6 additions and 3 deletions

View File

@@ -27285,6 +27285,9 @@ testFail("(function a(eval) { \"use strict\"; })",
testFail("(function a(package) { \"use strict\"; })",
"Defining 'package' in strict mode (1:12)");
testFail("\"use strict\";function foo(){\"use strict\";}function bar(){var v = 015}",
"Invalid number (1:65)");
testFail("var this = 10;", "Unexpected token (1:4)");
testFail("throw\n10;", "Illegal newline after throw (1:5)");