Lines Matching refs:let
33 // Test temporal dead zone semantics of let bound variables in
63 TestAll('let x = x + 1');
64 TestAll('let x = x += 1');
65 TestAll('let x = x++');
66 TestAll('let x = ++x');
70 TestAll('x + 1; let x;');
71 TestAll('x = 1; let x;');
72 TestAll('x += 1; let x;');
73 TestAll('++x; let x;');
74 TestAll('x++; let x;');
75 TestAll('let y = x; const x = 1;');
77 TestAll('f(); let x; function f() { return x + 1; }');
78 TestAll('f(); let x; function f() { x = 1; }');
79 TestAll('f(); let x; function f() { x += 1; }');
80 TestAll('f(); let x; function f() { ++x; }');
81 TestAll('f(); let x; function f() { x++; }');
84 TestAll('f()(); let x; function f() { return function() { return x + 1; } }');
85 TestAll('f()(); let x; function f() { return function() { x = 1; } }');
86 TestAll('f()(); let x; function f() { return function() { x += 1; } }');
87 TestAll('f()(); let x; function f() { return function() { ++x; } }');
88 TestAll('f()(); let x; function f() { return function() { x++; } }');
92 TestAll('eval("x + 1;"); let x;');
93 TestAll('eval("x = 1;"); let x;');
94 TestAll('eval("x += 1;"); let x;');
95 TestAll('eval("++x;"); let x;');
96 TestAll('eval("x++;"); let x;');
100 TestAll('function f() { eval("var y = 2;"); x + 1; }; f(); let x;');
101 TestAll('function f() { eval("var y = 2;"); x = 1; }; f(); let x;');
102 TestAll('function f() { eval("var y = 2;"); x += 1; }; f(); let x;');
103 TestAll('function f() { eval("var y = 2;"); ++x; }; f(); let x;');
104 TestAll('function f() { eval("var y = 2;"); x++; }; f(); let x;');
133 let m, n, o, p;
139 let a = 1;
150 let c = 3;
159 let d = 4;
170 let f = 6;
176 // Test that resolution of let bound variables works with scopes that call eval.
186 let x = 1;