Searched refs:TypeError (Results 1 - 25 of 290) sorted by relevance

1234567891011>>

/external/chromium_org/v8/test/mjsunit/es6/regress/
H A Dregress-2691.js28 // Check that yield* on non-objects raises a TypeError.
30 assertThrows('(function*() { yield* 10 })().next()', TypeError);
31 assertThrows('(function*() { yield* {} })().next()', TypeError);
32 assertThrows('(function*() { yield* undefined })().next()', TypeError);
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-2441.js30 assertThrows("Object.defineProperty(o, 'foobarloo', {value:{}});", TypeError);
31 assertThrows("Object.defineProperty(o, '__proto__', {value:{}});", TypeError);
H A Dregress-299979.js32 assertThrows(function() { list.unshift(4); }, TypeError);
33 assertThrows(function() { list.shift(); }, TypeError);
H A Dregress-734862.js33 assertTrue(catcher(null, 'foo') instanceof TypeError);
34 assertTrue(catcher(void 0, 'foo') instanceof TypeError);
35 assertTrue(catcher(null, 123) instanceof TypeError);
36 assertTrue(catcher(void 0, 123) instanceof TypeError);
H A Dregress-builtinbust-1.js10 assertThrows(function() { a.pop(); }, TypeError);
11 assertThrows(function() { a.push(5); }, TypeError);
12 assertThrows(function() { a.shift(); }, TypeError);
13 assertThrows(function() { a.unshift(5); }, TypeError);
14 assertThrows(function() { a.splice(0, 1); }, TypeError);
H A Dregress-3029.js42 assertThrows("g()", TypeError);
43 assertThrows("g()", TypeError);
45 assertThrows("g()", TypeError);
H A Dregress-2711.js30 assertThrows(function() { a.push(2); }, TypeError);
32 assertThrows(function() { a.push(2); }, TypeError);
H A Dregress-95920.js35 }, TypeError)
42 }, TypeError)
49 }, TypeError)
H A Dregress-crbug-325225.js36 assertThrows(do1, TypeError);
46 assertThrows(do2, TypeError);
H A Dregress-1182832.js36 assertTrue(e instanceof TypeError);
H A Dregress-1130.js38 assertTrue(e instanceof TypeError);
H A Dregress-1213575.js37 assertTrue(e instanceof TypeError);
H A Dregress-is-contextual.js41 assertThrows(function () { foo(); }, TypeError);
H A Dregress-crbug-18639.js37 assertInstanceof(e, TypeError);
H A Dregress-386034.js19 assertThrows(function() { f('----'); }, TypeError);
H A Dregress-667061.js33 assertTrue(o instanceof TypeError);
48 assertTrue(o instanceof TypeError);
68 assertTrue(o instanceof TypeError);
87 assertTrue(o instanceof TypeError);
H A Dregress-builtinbust-5.js11 assertThrows("a.unshift()", TypeError);
/external/chromium_org/v8/test/mjsunit/
H A Dglobal-const-var-conflicts.js34 try { eval("var a"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
36 try { eval("var a = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
40 try { eval("var b"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
42 try { eval("var b = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
47 try { eval("const c"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
50 try { eval("const c = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
55 try { eval("const d"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
58 try { eval("const d = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
H A Dthrow-exception-for-null-access.js28 // Must throw TypeError when accessing properties of null.
35 assertTrue(e instanceof TypeError);
H A Dunusual-constructor.js32 assertInstanceof(e, TypeError);
H A Dcall-non-function-call.js36 assertTrue(e instanceof TypeError);
/external/chromium_org/v8/test/mjsunit/harmony/
H A Darray-find.js244 TypeError);
246 TypeError);
248 TypeError);
250 TypeError);
252 assertThrows('[].find(null)', TypeError);
253 assertThrows('[].find(undefined)', TypeError);
254 assertThrows('[].find(0)', TypeError);
255 assertThrows('[].find(true)', TypeError);
256 assertThrows('[].find(false)', TypeError);
257 assertThrows('[].find("")', TypeError);
[all...]
H A Darray-findindex.js244 TypeError);
246 TypeError);
248 TypeError);
250 TypeError);
252 assertThrows('[].findIndex(null)', TypeError);
253 assertThrows('[].findIndex(undefined)', TypeError);
254 assertThrows('[].findIndex(0)', TypeError);
255 assertThrows('[].findIndex(true)', TypeError);
256 assertThrows('[].findIndex(false)', TypeError);
257 assertThrows('[].findIndex("")', TypeError);
[all...]
H A Dstring-contains.js59 assertThrows("String.prototype.contains.call(null, 'test')", TypeError);
60 assertThrows("String.prototype.contains.call(null, null)", TypeError);
61 assertThrows("String.prototype.contains.call(undefined, undefined)", TypeError);
63 assertThrows("String.prototype.contains.apply(null, ['test'])", TypeError);
64 assertThrows("String.prototype.contains.apply(null, [null])", TypeError);
65 assertThrows("String.prototype.contains.apply(undefined, [undefined])", TypeError);
152 assertThrows("'foo[a-z]+(bar)?'.contains(/[a-z]+/)", TypeError);
153 assertThrows("'foo/[a-z]+/(bar)?'.contains(/[a-z]+/)", TypeError);
155 assertThrows("'foo[a-z]+(bar)?'.contains(/(bar)?/)", TypeError);
156 assertThrows("'foo[a-z]+/(bar)?/'.contains(/(bar)?/)", TypeError);
[all...]
/external/chromium_org/v8/test/mjsunit/es6/
H A Dstring-html.js15 }, TypeError);
18 }, TypeError);
26 }, TypeError);
29 }, TypeError);
37 }, TypeError);
40 }, TypeError);
48 }, TypeError);
51 }, TypeError);
59 }, TypeError);
62 }, TypeError);
[all...]

Completed in 175 milliseconds

1234567891011>>