Skip to content

Commit b71ec38

Browse files
Added tests for ASI and element access with 'let'.
1 parent 11ec01b commit b71ec38

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// @target:es6
2+
3+
let
4+
x
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// @target:es6
2+
3+
// An ExpressionStatement cannot start with the two token sequence `let [` because
4+
// that would make it ambiguous with a `let` LexicalDeclaration whose first LexicalBinding was an ArrayBindingPattern.
5+
var let: any;
6+
let[0] = 100;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
var let: any = {};
2+
(let[0] = 100);

0 commit comments

Comments
 (0)