Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:Use

2 // Redistribution and use in source and binary forms, with or without
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 assertThrows("'use strict';\n" + code, exception);
31 assertThrows('"use strict";\n' + code, exception);
40 'use strict';\
58 args[arguments.length] = "'use strict';";
64 // Incorrect 'use strict' directive.
66 "use\\x20strict";
70 // Incorrectly place 'use strict' directive.
71 assertThrows("function foo (x) 'use strict'; {}", SyntaxError);
73 // 'use strict' in non-directive position.
76 "use strict";
80 // Multiple directives, including "use strict".
84 "use strict";\
138 "use strict";\
144 "use strict";
157 "use strict";
162 // Octal before "use strict"
166 "use strict";\
182 "use strict";
286 // Use of const in strict mode is disallowed in anticipation of ES Harmony.
311 "use strict";
319 "use strict";
338 // Simple use of each reserved word
346 eval("var x = { get " + word + " () { 'use strict'; } };");
347 eval("var x = { set " + word + " (value) { 'use strict'; } };");
353 eval("var x = { get '" + word + "' () { 'use strict'; } };");
354 eval("var x = { set '" + word + "' (value) { 'use strict'; } };");
366 assertThrows("function " + word + " () { 'use strict'; }", 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'; }",
378 assertThrows("var x = { set foo(" + word + ") { 'use strict'; } };",
402 "use strict";
431 "use strict";
472 "use strict";
476 "use strict";
506 "use strict";
545 "use strict";
765 "use strict";
778 "use strict";
790 "use strict";
800 "use strict";
836 "use strict";
858 "use strict";
876 "use strict";
894 "use strict";
912 "use strict";
970 "use strict";
992 "use strict";
1006 "use strict";
1030 assertThrows(function() { 'use strict'; pill.property = "value"; },
1050 "use strict";
1057 var another = new Function("'use strict'");
1063 var third = (function() { "use strict"; return function() {}; })();
1079 "use strict";
1101 "use strict";
1117 "use strict";
1143 "use strict";
1157 "use strict";
1189 "use strict";