Searched refs:assertInstanceof (Results 1 - 24 of 24) sorted by relevance

/external/v8/test/mjsunit/
H A Dunusual-constructor.js32 assertInstanceof(e, TypeError);
H A Dstrict-mode-eval.js50 assertInstanceof(e, SyntaxError);
60 assertInstanceof(e, SyntaxError);
70 assertInstanceof(e, SyntaxError);
80 assertInstanceof(e, SyntaxError);
H A Dstrict-mode-opt.js51 assertInstanceof(e, ReferenceError);
97 assertInstanceof(e, ReferenceError);
H A Dbig-array-literal.js97 assertInstanceof(e, RangeError);
H A Dbig-object-literal.js97 assertInstanceof(e, RangeError);
H A Dmjsunit.js101 var assertInstanceof; variable
337 assertInstanceof(e, type_opt);
349 assertInstanceof = function assertInstanceof(obj, type) {
346 assertInstanceof = function assertInstanceof(obj, type) { function
H A Darguments-apply.js78 assertInstanceof(NonObjectReceiver(42), Number);
H A Dstack-traces-overflow.js58 assertInstanceof(e, RangeError);
H A Dstrict-mode.js391 assertInstanceof(e, ReferenceError, "strict mode");
846 assertInstanceof(e, TypeError);
1027 assertInstanceof(pill, Function);
H A Dexternal-array-no-sse2.js33 assertInstanceof(o, f);
H A Dexternal-array.js33 assertInstanceof(o, f);
/external/v8/test/mjsunit/regress/
H A Dregress-crbug-18639.js37 assertInstanceof(e, TypeError);
H A Dregress-crbug-240032.js34 assertInstanceof(mk(), Function);
35 assertInstanceof(mk(), Function);
H A Dregress-115452.js45 assertInstanceof(e, TypeError);
H A Dregress-1170.js55 assertInstanceof(e, TypeError);
94 assertInstanceof(e, TypeError);
H A Dregress-244.js62 assertInstanceof(e, URIError);
H A Dregress-347914.js23 var assertInstanceof; variable
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; } }; function
43 assertInstanceof = function assertInstanceof(obj, type) { if (!(obj instanceof type)) { var actualTypeName = null; var actualConstructor = Object.getPrototypeOf(obj).constructor; if (typeof actualConstructor == "function") { actualTypeName = actualConstructor.name || String(actualConstructor); } fail("Object <" + PrettyPrint(obj) + "> is not an instance of <" + (type.name || type) + ">" + (actualTypeName ? " but of < " + actualTypeName + ">" : "")); } };
H A Dregress-410912.js8 var assertInstanceof; variable
/external/v8/test/mjsunit/harmony/
H A Dblock-early-errors.js32 assertInstanceof(e, SyntaxError);
H A Dblock-let-crankshaft.js351 assertInstanceof(e, ReferenceError);
359 assertInstanceof(e, ReferenceError);
374 assertInstanceof(e, ReferenceError);
385 assertInstanceof(e, ReferenceError);
399 assertInstanceof(e, ReferenceError);
407 assertInstanceof(e, ReferenceError);
422 assertInstanceof(e, ReferenceError);
433 assertInstanceof(e, ReferenceError);
H A Dblock-let-semantics.js39 assertInstanceof(e, ReferenceError);
49 assertInstanceof(e, ReferenceError);
H A Dblock-const-assign.js119 assertInstanceof(e, SyntaxError);
H A Dproxies.js698 try { o.x = 4 } catch (e) { assertInstanceof(e, Error) }
711 try { o.x = 4 } catch (e) { assertInstanceof(e, Error) }
1982 try { p.x } catch (e) { assertInstanceof(e, Error) }
1992 try { p.x } catch (e) { assertInstanceof(e, Error) }
2002 try { p.x } catch (e) { assertInstanceof(e, Error) }
2013 try { o.x } catch (e) { assertInstanceof(e, Error) }
2023 try { p.x = 4 } catch (e) { assertInstanceof(e, Error) }
2033 try { p.x = 4 } catch (e) { assertInstanceof(e, Error) }
2043 try { p.x } catch (e) { assertInstanceof(e, Error) }
2054 try { o.x = 4 } catch (e) { assertInstanceof(
[all...]
/external/v8/test/intl/
H A Dassert.js142 assertInstanceof(e, type_opt);
173 function assertInstanceof(obj, type) { function

Completed in 1207 milliseconds