/external/v8/test/mjsunit/harmony/ |
private.js | 86 assertThrows(function() {new String(symbols[i]) }, TypeError) 88 assertThrows(function() { symbols[i] + "" }, TypeError) 118 assertThrows(function() { Number(symbols[i]); }, TypeError); 119 assertThrows(function() { symbols[i] + 0; }, TypeError);
|
proxies-with-unscopables.js | 115 assertThrows(function() {
|
block-sloppy-function.js | 189 assertThrows(function notInDefaultScope(x = y) { 299 assertThrows(() => hoistWhenFrozen, ReferenceError);
|
/external/v8/test/mjsunit/ |
instanceof.js | 90 assertThrows("({} instanceof G)");
|
keyed-array-call.js | 56 assertThrows(function() { f2(1) });
|
object-define-properties.js | 64 assertThrows(function() {
|
stack-traces.js | 216 assertThrows(()=>n.foo(), RangeError); 220 assertThrows(()=>n.foo(), RangeError); 358 assertThrows(function() { Error.captureStackTrace(my_error); }); 362 assertThrows(function() { Error.captureStackTrace(my_error); });
|
array-constructor.js | 117 assertThrows('new Array(3.14)'); 118 assertThrows('Array(2.72)');
|
object-freeze.js | 313 assertThrows(function() { obj.push(); }, TypeError); 314 assertThrows(function() { obj.unshift(); }, TypeError); 315 assertThrows(function() { obj.splice(0,0); }, TypeError); 319 assertThrows(function() { obj.splice(0,1,1); }, TypeError); 328 assertThrows(function() { obj.unshift(); }, TypeError);
|
arguments-apply.js | 106 assertThrows(CallNonFunction, TypeError);
|
indexed-accessors.js | 106 assertThrows('this[a].__parent__');
|
mjsunit.js | 94 var assertThrows; 348 assertThrows = function assertThrows(code, type_opt, cause_opt) { 361 fail("invalid use of assertThrows, maybe you want assertThrowsEquals");
|
/external/v8/test/mjsunit/regress/ |
readonly1.js | 71 assertThrows("s_strict(o4);", TypeError);
|
readonly2.js | 62 assertThrows("s_strict(o2);", TypeError);
|
readonly3.js | 65 assertThrows("s_strict(o2);", TypeError);
|
readonly4.js | 74 assertThrows("s_strict(o4);", TypeError);
|
readonly5.js | 66 assertThrows("s_strict(o4)", TypeError);
|
regress-1118.js | 52 assertThrows("h()");
|
regress-crbug-323942.js | 53 assertThrows(function() { g(receiver); });
|
regress-347914.js | 21 var assertThrows; 42 as1sertThrows = function assertThrows(code, type_opt, cause_opt) { var threwException = true; try { if (typeof code == 'function') { code(); } else { eval(code); } threwException = false; } catch (e) { if (typeof type_opt == 'function') { assertInstanceof(e, type_opt); } if (arguments.length >= 3) { assertEquals(e.type, cause_opt); } return; } };
|
/external/v8/test/mjsunit/es7/ |
object-observe.js | 113 assertThrows(function() { Object.observe("non-object", observer.callback); }, 115 assertThrows(function() { Object.observe(this, observer.callback); }, 117 assertThrows(function() { Object.observe(obj, nonFunction); }, TypeError); 118 assertThrows(function() { Object.observe(obj, frozenFunction); }, TypeError); 130 assertThrows(function() { Object.unobserve(4, observer.callback); }, TypeError); 131 assertThrows(function() { Object.unobserve(this, observer.callback); }, 133 assertThrows(function() { Object.unobserve(obj, nonFunction); }, TypeError); 141 assertThrows(function() { Object.getNotifier(this) }, TypeError); 148 assertThrows(function() { notifier.notify({}); }, TypeError); 149 assertThrows(function() { notifier.notify({ type: 4 }); }, TypeError) [all...] |
/external/v8/test/mjsunit/es6/ |
templates.js | 481 assertThrows(code, SyntaxError); 483 assertThrows(code, SyntaxError); 491 assertThrows("`\\x`", SyntaxError); 492 assertThrows("`\\u`", SyntaxError); 495 assertThrows(code, SyntaxError); 497 assertThrows(code, SyntaxError); 515 assertThrows("`${\"\\07\"}\\07`", SyntaxError); 518 assertThrows("`${(function() { \"use strict\"; return \"\\07\"; })()}`",
|
typedarray-iteration.js | 70 assertThrows(function() { 181 assertThrows(function() {
|
/external/v8/test/mjsunit/compiler/ |
pic.js | 72 assertThrows("CallF(0)", TypeError);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
Atomic8Test.java | 515 assertThrows(NullPointerException.class, throwingActions); 533 assertThrows(NullPointerException.class, throwingActions); 552 assertThrows(NullPointerException.class, throwingActions); 571 assertThrows(NullPointerException.class, throwingActions);
|