Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:FOO

71 assertThrows("function foo (x) 'use strict'; {}", SyntaxError);
99 CheckStrictMode("function foo(a, b, eval, c, d) {}", SyntaxError);
102 CheckStrictMode("function foo(a, b, arguments, c, d) {}", SyntaxError);
105 CheckStrictMode("var o = { set foo(eval) {} }", SyntaxError);
108 CheckStrictMode("var o = { set foo(arguments) {} }", SyntaxError);
111 CheckStrictMode("function foo(a, b, c, d, b) {}", SyntaxError);
137 function foo(eval) {\
192 assertThrows("var x = { get foo() { }, get foo() { } };", SyntaxError);
193 assertThrows("var x = { get foo(){}, get 'foo'(){}};", SyntaxError);
197 assertThrows("var x = { set foo(v) { }, set foo(v) { } };", SyntaxError);
198 assertThrows("var x = { set foo(v) { }, set 'foo'(v) { } };", SyntaxError);
202 assertThrows("var x = { foo: 'data', set foo(v) { } };", SyntaxError);
203 assertThrows("var x = { set foo(v) { }, foo: 'data' };", SyntaxError);
204 assertThrows("var x = { foo: 'data', set 'foo'(v) { } };", SyntaxError);
205 assertThrows("var x = { set foo(v) { }, 'foo': 'data' };", SyntaxError);
206 assertThrows("var x = { 'foo': 'data', set foo(v) { } };", SyntaxError);
207 assertThrows("var x = { set 'foo'(v) { }, foo: 'data' };", SyntaxError);
208 assertThrows("var x = { 'foo': 'data', set 'foo'(v) { } };", SyntaxError);
209 assertThrows("var x = { set 'foo'(v) { }, 'foo': 'data' };", SyntaxError);
216 assertThrows("var x = { foo: 'data', get foo() { } };", SyntaxError);
217 assertThrows("var x = { get foo() { }, foo: 'data' };", SyntaxError);
218 assertThrows("var x = { 'foo': 'data', get foo() { } };", SyntaxError);
219 assertThrows("var x = { get 'foo'() { }, 'foo': 'data' };", SyntaxError);
358 CheckStrictMode("function foo (" + word + ") {}", SyntaxError);
359 CheckStrictMode("function foo (" + word + ", " + word + ") {}", SyntaxError);
360 CheckStrictMode("function foo (a, " + word + ") {}", SyntaxError);
361 CheckStrictMode("function foo (" + word + ", a) {}", SyntaxError);
362 CheckStrictMode("function foo (a, " + word + ", b) {}", SyntaxError);
363 CheckStrictMode("var foo = function (" + word + ") {}", SyntaxError);
367 assertThrows("function foo (" + word + ", " + word + ") { 'use strict'; }",
369 assertThrows("function foo (a, " + word + ") { 'use strict'; }", SyntaxError);
370 assertThrows("function foo (" + word + ", a) { 'use strict'; }", SyntaxError);
371 assertThrows("function foo (a, " + word + ", b) { 'use strict'; }",
373 assertThrows("var foo = function (" + word + ") { 'use strict'; }",
377 CheckStrictMode("var x = { set foo(" + word + ") {} };", SyntaxError);
378 assertThrows("var x = { set foo(" + word + ") { 'use strict'; } };",
760 Object.defineProperty(o, "foo", { value: "FOO", writable: false });
766 foo = "Hello";
775 var o = { get foo() { return "Yey"; } };
779 o.foo = (0xBADBAD00 >> 1);