diff options
Diffstat (limited to 'js/src/jit-test/tests/parser/let-after-directive.js')
-rw-r--r-- | js/src/jit-test/tests/parser/let-after-directive.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/parser/let-after-directive.js b/js/src/jit-test/tests/parser/let-after-directive.js new file mode 100644 index 000000000..58864ab34 --- /dev/null +++ b/js/src/jit-test/tests/parser/let-after-directive.js @@ -0,0 +1,6 @@ +// 'let' after "use strict" directive without semicolon is lexed as TOK_NAME +// before parsing the directive. 'let' with TOK_NAME should be handled +// correctly in strict mode. + +"use strict" +let a = 1; |