summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/let-after-directive.js
blob: 58864ab3412f2098c350730204770b056088f8d0 (plain)
1
2
3
4
5
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;