Home
last modified time | relevance | path

Searched refs:TypeError (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/external/v8/test/mjsunit/harmony/
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 …]
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 …]
Ddataview-accessors.js400 assertThrows(function() { f(); }, TypeError);
402 assertThrows(function() { f.call({}, 0, 0); }, TypeError);
403 assertThrows(function() { f.call(a); }, TypeError);
405 assertThrows(function() { f.call(a, 1); }, TypeError);
433 assertThrows(function() { a.getUint8(); }, TypeError);
434 assertThrows(function() { a.getInt8(); }, TypeError);
435 assertThrows(function() { a.getUint16(); }, TypeError);
436 assertThrows(function() { a.getInt16(); }, TypeError);
437 assertThrows(function() { a.getUint32(); }, TypeError);
438 assertThrows(function() { a.getInt32(); }, TypeError);
[all …]
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 …]
Dstring-endswith.js48 assertThrows("String.prototype.endsWith.call(null, 'test')", TypeError);
49 assertThrows("String.prototype.endsWith.call(null, null)", TypeError);
50 assertThrows("String.prototype.endsWith.call(undefined, undefined)", TypeError);
52 assertThrows("String.prototype.endsWith.apply(null, ['test'])", TypeError);
53 assertThrows("String.prototype.endsWith.apply(null, [null])", TypeError);
54 assertThrows("String.prototype.endsWith.apply(undefined, [undefined])", TypeError);
307 }, TypeError);
310 }, TypeError);
312 }, TypeError);
330 }, TypeError);
[all …]
Dstring-startswith.js48 assertThrows("String.prototype.startsWith.call(null, 'test')", TypeError);
49 assertThrows("String.prototype.startsWith.call(null, null)", TypeError);
50 assertThrows("String.prototype.startsWith.call(undefined, undefined)", TypeError);
52 assertThrows("String.prototype.startsWith.apply(null, ['test'])", TypeError);
53 assertThrows("String.prototype.startsWith.apply(null, [null])", TypeError);
54 assertThrows("String.prototype.startsWith.apply(undefined, [undefined])", TypeError);
294 assertThrows(function() { "[a-z]+(bar)?".startsWith(/[a-z]+/); }, TypeError);
296 assertThrows(function() { "[a-z]+(bar)?".startsWith(/(bar)?/); }, TypeError);
297 assertThrows(function() { "[a-z]+/(bar)?/".startsWith(/(bar)?/); }, TypeError);
315 }, TypeError);
[all …]
/external/v8/test/mjsunit/
Dstrict-mode.js487 assertThrows(function() { delete_property(object); }, TypeError);
489 assertThrows(function() { delete_element(object, "1"); }, TypeError);
490 assertThrows(function() { delete_element(object, 1); }, TypeError);
492 assertThrows(function() { delete_element(object, "7"); }, TypeError);
493 assertThrows(function() { delete_element(object, 7); }, TypeError);
495 assertThrows(function() { delete_element(object, "3.14"); }, TypeError);
496 assertThrows(function() { delete_element(object, 3.14); }, TypeError);
770 TypeError);
781 TypeError);
794 assertThrows(function() { strict(frozen); }, TypeError);
[all …]
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); }
Ddelete-non-configurable.js35 assertThrows("'use strict'; delete so[i];", TypeError);
37 assertThrows("'use strict'; delete so[i.toString()];", TypeError);
53 assertThrows("'use strict'; delete arr[i];", TypeError);
55 assertThrows("'use strict'; delete arr[i.toString()];", TypeError);
70 assertThrows("'use strict'; delete obj[INDEX];", TypeError);
72 assertThrows("'use strict'; delete obj[INDEX.toString()];", TypeError);
Dobject-seal.js212 assertThrows(function() { push_call(obj); }, TypeError);
213 assertThrows(function() { pop_call(obj); }, TypeError);
220 assertThrows(function() { obj.push(3); }, TypeError);
221 assertThrows(function() { obj.pop(); }, TypeError);
222 assertThrows(function() { obj.shift(3); }, TypeError);
224 assertThrows(function() { obj.unshift(1); }, TypeError);
225 assertThrows(function() { obj.splice(0, 0, 100, 101, 102); }, TypeError);
252 assertThrows(function() { push_call(obj); }, TypeError);
253 assertThrows(function() { shift_call(obj); }, TypeError);
268 assertThrows(function() { obj.splice(0,0,1); }, TypeError);
[all …]
/external/v8/test/webkit/
Ddfg-inline-arguments-use-from-all-the-places-broken-expected.txt29 PASS argsToStr(bar("a" + __i, "b" + __i, "c" + __i)) threw exception TypeError: Cannot read propert…
30 PASS argsToStr(bar("a" + __i, "b" + __i, "c" + __i)) threw exception TypeError: Cannot read propert…
31 PASS argsToStr(bar("a" + __i, "b" + __i, "c" + __i)) threw exception TypeError: Cannot read propert…
32 PASS argsToStr(bar("a" + __i, "b" + __i, "c" + __i)) threw exception TypeError: Cannot read propert…
33 PASS argsToStr(bar("a" + __i, "b" + __i, "c" + __i)) threw exception TypeError: Cannot read propert…
34 PASS argsToStr(bar("a" + __i, "b" + __i, "c" + __i)) threw exception TypeError: Cannot read propert…
35 PASS argsToStr(bar("a" + __i, "b" + __i, "c" + __i)) threw exception TypeError: Cannot read propert…
36 PASS argsToStr(bar("a" + __i, "b" + __i, "c" + __i)) threw exception TypeError: Cannot read propert…
37 PASS argsToStr(bar("a" + __i, "b" + __i, "c" + __i)) threw exception TypeError: Cannot read propert…
38 PASS argsToStr(bar("a" + __i, "b" + __i, "c" + __i)) threw exception TypeError: Cannot read propert…
[all …]
Ddfg-peephole-compare-final-object-to-final-object-or-other-when-both-proven-final-object-expected.txt29 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
31 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
33 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
35 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
37 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
39 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
41 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
43 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
45 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
47 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
[all …]
Ddfg-compare-final-object-to-final-object-or-other-when-both-proven-final-object-expected.txt29 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
31 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
33 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
35 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
37 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
39 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
41 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
43 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
45 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
47 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
[all …]
Ddfg-peephole-compare-final-object-to-final-object-or-other-when-proven-final-object-expected.txt29 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
31 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
33 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
35 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
37 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
39 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
41 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
43 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
45 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
47 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
[all …]
Ddfg-compare-final-object-to-final-object-or-other-when-proven-final-object-expected.txt29 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
31 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
33 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
35 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
37 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
39 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
41 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
43 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
45 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
47 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
[all …]
Ddelete-getters-setters-expected.txt29 PASS b1.property threw exception TypeError: Cannot read property 'property' of undefined.
30 PASS a2.property threw exception TypeError: Cannot read property 'property' of undefined.
31 PASS b3.property threw exception TypeError: Cannot read property 'property' of undefined.
32 PASS a4.property threw exception TypeError: Cannot read property 'property' of undefined.
33 PASS b5.property threw exception TypeError: Cannot read property 'property' of undefined.
34 PASS a6.property threw exception TypeError: Cannot read property 'property' of undefined.
35 PASS b7.property threw exception TypeError: Cannot read property 'property' of undefined.
36 PASS a8.property threw exception TypeError: Cannot read property 'property' of undefined.
37 PASS o1.b.property threw exception TypeError: Cannot read property 'property' of undefined.
38 PASS o1.a.property threw exception TypeError: Cannot read property 'property' of undefined.
[all …]
Dinstance-of-immediates-expected.txt29 PASS (1 instanceof 1) threw exception TypeError: Expecting a function in instanceof check, but got …
30 PASS ({} instanceof 1) threw exception TypeError: Expecting a function in instanceof check, but got…
31 PASS (obj instanceof 1) threw exception TypeError: Expecting a function in instanceof check, but go…
32 PASS (1 instanceof {}) threw exception TypeError: Expecting a function in instanceof check, but got…
33 PASS ({} instanceof {}) threw exception TypeError: Expecting a function in instanceof check, but go…
34 PASS (obj instanceof {}) threw exception TypeError: Expecting a function in instanceof check, but g…
39 PASS ({} instanceof Constructor) threw exception TypeError: Function has non-object prototype '1' i…
40 PASS (obj instanceof Constructor) threw exception TypeError: Function has non-object prototype '1' …
45 PASS ({} instanceof Constructor) threw exception TypeError: Function has non-object prototype 'null…
46 PASS (obj instanceof Constructor) threw exception TypeError: Function has non-object prototype 'nul…
/external/v8/test/mjsunit/es6/
Dstring-html.js15 }, TypeError);
18 }, TypeError);
26 }, TypeError);
29 }, TypeError);
37 }, TypeError);
40 }, TypeError);
48 }, TypeError);
51 }, TypeError);
59 }, TypeError);
62 }, TypeError);
[all …]
/external/v8/test/webkit/fast/js/
Darray-prototype-properties-expected.txt29 PASS Array.prototype.toString.call(undefined) threw exception TypeError: Cannot convert undefined o…
30 PASS Array.prototype.toLocaleString.call(undefined) threw exception TypeError: Cannot convert undef…
31 PASS Array.prototype.concat.call(undefined, []) threw exception TypeError: Array.prototype.concat c…
32 PASS Array.prototype.join.call(undefined, []) threw exception TypeError: Array.prototype.join calle…
33 PASS Array.prototype.pop.call(undefined) threw exception TypeError: Array.prototype.pop called on n…
34 PASS Array.prototype.push.call(undefined, {}) threw exception TypeError: Array.prototype.push calle…
35 PASS Array.prototype.reverse.call(undefined) threw exception TypeError: Array.prototype.reverse cal…
36 PASS Array.prototype.shift.call(undefined) threw exception TypeError: Array.prototype.shift called …
37 PASS Array.prototype.slice.call(undefined, 0, 1) threw exception TypeError: Array.prototype.slice c…
38 PASS Array.prototype.sort.call(undefined) threw exception TypeError: Array.prototype.sort called on…
[all …]
Dcaller-property-expected.txt33 FAIL nonStrictCaller(strictCallee) should throw TypeError: Type error. Threw exception TypeError: '…
34 FAIL strictCaller(nonStrictCallee) should throw TypeError: Function.caller used to retrieve strict …
35 FAIL strictCaller(strictCallee) should throw TypeError: Type error. Threw exception TypeError: 'cal…
37 …AIL nonStrictCaller(boundStrictCallee) should throw TypeError: Type error. Threw exception TypeErr…
38 FAIL strictCaller(boundNonStrictCallee) should throw TypeError: Function.caller used to retrieve st…
39 FAIL strictCaller(boundStrictCallee) should throw TypeError: Type error. Threw exception TypeError:…
42 FAIL nonStrictGetter(strictAccessor) should throw TypeError: Type error. Threw exception TypeError:…
43 FAIL nonStrictSetter(strictAccessor) should throw TypeError: Type error. Threw exception TypeError:…
44 FAIL strictGetter(nonStrictAccessor) should throw TypeError: Function.caller used to retrieve stric…
45 FAIL strictSetter(nonStrictAccessor) should throw TypeError: Function.caller used to retrieve stric…
[all …]
/external/v8/test/mjsunit/bugs/
Dbug-2615.js44 assertThrows("a.unshift(4);", TypeError);
53 assertThrows("a.unshift(0);", TypeError);
72 assertThrows("a.splice(1,1);", TypeError);
79 assertThrows("a.splice(1,4);", TypeError);
87 assertThrows("a.splice(1,4);", TypeError);
99 assertThrows("a.shift();", TypeError);
107 assertThrows("a.pop();", TypeError);
114 assertThrows("a.sort();", TypeError);
123 assertThrows("a.sort();", TypeError);
/external/v8/test/mjsunit/regress/
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);
Dregress-2443.js31 TypeError);
34 TypeError);
37 TypeError);
40 TypeError);
43 TypeError);
46 TypeError);
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);
/external/protobuf/python/google/protobuf/internal/
Dwire_format_test.py64 self.assertRaises(TypeError, wire_format.UnpackTag, None)
65 self.assertRaises(TypeError, wire_format.UnpackTag, 'abc')
66 self.assertRaises(TypeError, wire_format.UnpackTag, 0.0)
67 self.assertRaises(TypeError, wire_format.UnpackTag, object())
81 self.assertRaises(TypeError, Z, None)
82 self.assertRaises(TypeError, Z, 'abcd')
83 self.assertRaises(TypeError, Z, 0.0)
84 self.assertRaises(TypeError, Z, object())
98 self.assertRaises(TypeError, Z, None)
99 self.assertRaises(TypeError, Z, 'abcd')
[all …]

12345678910>>...12