• Home
  • Raw
  • Download

Lines Matching refs:shouldThrow

43     shouldThrow(str);
44 shouldThrow("(function(){" + str + "})");
65 shouldThrow("testThisDotAccess.call(null)");
66 shouldThrow("testThisDotAccess.call(undefined)");
71 shouldThrow("testThisBracketAccess.call(null, 'length')");
72 shouldThrow("testThisBracketAccess.call(undefined, 'length')");
77 shouldThrow("Function('\"use strict\"; with({});')");
99 shouldThrow("(function (){'use strict'; arguments.callee; })()");
100 shouldThrow("(function (){'use strict'; arguments.caller; })()");
101 shouldThrow("(function f(){'use strict'; f.arguments; })()");
102 shouldThrow("(function f(){'use strict'; f.caller; })()");
103 shouldThrow("(function f(){'use strict'; f.arguments=5; })()");
104 shouldThrow("(function f(){'use strict'; f.caller=5; })()");
105 shouldThrow("(function (arg){'use strict'; arguments.callee; })()");
106 shouldThrow("(function (arg){'use strict'; arguments.caller; })()");
107 shouldThrow("(function f(arg){'use strict'; f.arguments; })()");
108 shouldThrow("(function f(arg){'use strict'; f.caller; })()");
109 shouldThrow("(function f(arg){'use strict'; f.arguments=5; })()");
110 shouldThrow("(function f(arg){'use strict'; f.caller=5; })()");
125 shouldThrow("'use strict'; return");
128 shouldThrow("'use strict'; for(;;)return");
142 shouldThrow("'use strict'; someGlobal = 'Shouldn\\'t be able to assign this.'; ");
143 shouldThrow("'use strict'; (function f(){ f = 'shouldn\\'t be able to assign to function expression…
144 shouldThrow("'use strict'; eval('var introducedVariable = \"FAIL: variable introduced into containi…
147 shouldThrow("'use strict'; objectWithReadonlyProperty.prop = 'fail'");
148 shouldThrow("'use strict'; delete objectWithReadonlyProperty.prop");
150 shouldThrow("'use strict'; delete objectWithReadonlyProperty[readonlyPropName]");
160 shouldThrow("global.eval('\"use strict\"; if (0) ++arguments; true;')");