Lines Matching refs:function
33 function props(x) {
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);
107 function closures1() {
110 a.push(function () { return i; });
119 function closures2() {
122 a.push(function () { return i; });
123 b.push(function () { return j; });
135 function closures3(x) {
138 a.push(function () { return p; });