Lines Matching refs:function
32 function props(x) {
95 assertThrows("function foo() { 'use strict'; for (let in {}) { } }", SyntaxError);
96 assertThrows("function foo() { 'use strict'; for (let x = 3 in {}) { } }", SyntaxError);
97 assertThrows("function foo() { 'use strict'; for (let x, y in {}) { } }", SyntaxError);
98 assertThrows("function foo() { 'use strict'; for (let x = 3, y in {}) { } }", SyntaxError);
99 assertThrows("function foo() { 'use strict'; for (let x, y = 4 in {}) { } }", SyntaxError);
100 assertThrows("function foo() { 'use strict'; for (let x = 3, y = 4 in {}) { } }", SyntaxError);
105 function closures1() {
108 a.push(function () { return i; });
117 function closures2() {
120 a.push(function () { return i; });
121 b.push(function () { return j; });
131 function closure_in_for_init() {
133 for (let i = 0, f = function() { return i }; i < 5; ++i) {
143 function closure_in_for_cond() {
145 for (let i = 0; a.push(function () { return i; }), i < 5; ++i) { }
153 function closure_in_for_next() {
155 for (let i = 0; i < 5; a.push(function () { return i; }), ++i) { }
165 function closures3(x) {
168 a.push(function () { return p; });