Home | History | Annotate | Download | only in harmony

Lines Matching refs:let

35   for (let p in x) array.push(p);
57 let i = "outer_i";
58 let s = "outer_s";
59 for (let i = 0x0020; i < 0x01ff; i+=2) {
60 let s = 'char:' + String.fromCharCode(i);
78 for (let p in {a : [0], b : 1}) { result += p; }
82 for (let p in {a : {v:1}, b : 1}) { result += p; }
86 for (let p in { get a() {}, b : 1}) { result += p; }
90 for (let p in { get a() {}, set a(x) {}, b : 1}) { result += p; }
95 // in a for-in statement with let variables.
97 assertThrows("function foo() { 'use strict'; for (let in {}) { } }", SyntaxError);
98 assertThrows("function foo() { 'use strict'; for (let x = 3 in {}) { } }", SyntaxError);
99 assertThrows("function foo() { 'use strict'; for (let x, y in {}) { } }", SyntaxError);
100 assertThrows("function foo() { 'use strict'; for (let x = 3, y in {}) { } }", SyntaxError);
101 assertThrows("function foo() { 'use strict'; for (let x, y = 4 in {}) { } }", SyntaxError);
102 assertThrows("function foo() { 'use strict'; for (let x = 3, y = 4 in {}) { } }", SyntaxError);
108 let a = [];
109 for (let i = 0; i < 5; ++i) {
112 for (let j = 0; j < 5; ++j) {
120 let a = [], b = [];
121 for (let i = 0, j = 10; i < 5; ++i, ++j) {
125 for (let k = 0; k < 5; ++k) {
136 let a = [];
137 for (let p in x) {
140 let k = 0;
141 for (let q in x) {