Home
last modified time | relevance | path

Searched refs:RangeError (Results 1 – 25 of 91) sorted by relevance

1234

/external/v8/test/mjsunit/es6/
Dstring-fromcodepoint.js23 assertThrows(function() { String.fromCodePoint("_"); }, RangeError);
24 assertThrows(function() { String.fromCodePoint("+Infinity"); }, RangeError);
25 assertThrows(function() { String.fromCodePoint("-Infinity"); }, RangeError);
26 assertThrows(function() { String.fromCodePoint(-1); }, RangeError);
27 assertThrows(function() { String.fromCodePoint(0x10FFFF + 1); }, RangeError);
28 assertThrows(function() { String.fromCodePoint(3.14); }, RangeError);
29 assertThrows(function() { String.fromCodePoint(3e-2); }, RangeError);
30 assertThrows(function() { String.fromCodePoint(-Infinity); }, RangeError);
31 assertThrows(function() { String.fromCodePoint(+Infinity); }, RangeError);
32 assertThrows(function() { String.fromCodePoint(NaN); }, RangeError);
[all …]
Dstring-repeat.js63 assertThrows('"a".repeat(-1)', RangeError);
64 assertThrows('"a".repeat(Number.POSITIVE_INFINITY)', RangeError);
65 assertThrows('"a".repeat(Math.pow(2, 30))', RangeError);
66 assertThrows('"a".repeat(Math.pow(2, 40))', RangeError);
69 assertThrows('"".repeat(-1)', RangeError);
70 assertThrows('"".repeat(Number.POSITIVE_INFINITY)', RangeError);
Dtypedarray.js46 assertThrows(function() { new ArrayBuffer(-10); }, RangeError);
47 assertThrows(function() { new ArrayBuffer(-2.567); }, RangeError);
217 assertThrows(function () { new constr(ab, 257*elementSize); }, RangeError);
220 RangeError);
224 RangeError);
229 assertThrows(function() { new constr(unalignedArrayBuffer)}, RangeError);
231 RangeError);
674 assertThrows(function() { new DataView(ab, -1); }, RangeError);
675 assertThrows(function() { new DataView(ab, 1, -1); }, RangeError);
678 assertThrows(function() { new DataView(ab, 257); }, RangeError);
[all …]
Dinstanceof-proxies.js58 assertThrows(() => { proxy instanceof Object }, RangeError);
61 assertThrows(() => { proxy instanceof Object }, RangeError);
/external/v8/test/mjsunit/regress/
Dregress-324028.js30 assertThrows(function() { new Uint8Array(badObj); }, RangeError);
31 assertThrows(function() { new Uint8ClampedArray(badObj); }, RangeError);
32 assertThrows(function() { new Int8Array(badObj); }, RangeError);
33 assertThrows(function() { new Uint16Array(badObj); }, RangeError);
34 assertThrows(function() { new Int16Array(badObj); }, RangeError);
35 assertThrows(function() { new Uint32Array(badObj); }, RangeError);
36 assertThrows(function() { new Int32Array(badObj); }, RangeError);
37 assertThrows(function() { new Float32Array(badObj); }, RangeError);
38 assertThrows(function() { new Float64Array(badObj); }, RangeError);
Dregress-2443.js118 RangeError);
123 RangeError);
128 RangeError);
Dregress-crbug-451013.js7 }, RangeError);
11 }, RangeError);
Dregress-crbug-385002.js10 assertThrows(f, RangeError);
15 assertThrows("g()", RangeError);
Dregress-splice-large-index.js30 assertThrows("a.unshift(1);", RangeError);
38 assertThrows("a.splice(1,1,7,7,7,7,7);", RangeError);
Dregress-581.js35 assertThrows(function() { a.concat(a); }, RangeError);
47 assertThrows(function() { c.concat(c, a); }, RangeError);
Dregress-353004.js23 }, RangeError);
40 }, RangeError);
/external/v8/test/mjsunit/harmony/
Dproxies-prototype-handler-stackoverflow.js14 try { return p.__proto__; } catch(e) { assertInstanceof(e, RangeError); }
21 try { p.__proto__ = p; } catch(e) { assertInstanceof(e, RangeError); }
30 } catch(e) { assertInstanceof(e, RangeError); }
37 try { p.foo = 1; } catch(e) { assertInstanceof(e, RangeError); }
44 try { return p.foo; } catch(e) { assertInstanceof(e, RangeError); }
51 try { for (var x in p) {} } catch(e) { assertInstanceof(e, RangeError); }
60 } catch(e) { assertInstanceof(e, RangeError); }
69 } catch(e) { assertInstanceof(e, RangeError); }
78 } catch(e) { assertInstanceof(e, RangeError); }
85 try { delete p.foo; } catch(e) { assertInstanceof(e, RangeError); }
[all …]
Dproxies-prototype-target-stackoverflow.js13 try { return p.__proto__; } catch(e) { assertInstanceof(e, RangeError); }
19 try { p.__proto__ = p; } catch(e) { assertInstanceof(e, RangeError); }
27 } catch(e) { assertInstanceof(e, RangeError); }
33 try { p.foo = 1; } catch(e) { assertInstanceof(e, RangeError); }
39 try { return p.foo; } catch(e) { assertInstanceof(e, RangeError); }
45 try { for (var x in p) {} } catch(e) { assertInstanceof(e, RangeError); }
Dsharedarraybuffer.js47 assertThrows(function() { new SharedArrayBuffer(-10); }, RangeError);
48 assertThrows(function() { new SharedArrayBuffer(-2.567); }, RangeError);
178 assertThrows(function () { new constr(sab, 257*elementSize); }, RangeError);
181 RangeError);
185 RangeError);
190 assertThrows(function() { new constr(unalignedArrayBuffer)}, RangeError);
192 RangeError);
/external/v8/test/mjsunit/
Dstring-normalize.js9 assertThrows(function() { ''.normalize('invalid'); }, RangeError);
11 assertThrows(function() { ''.normalize('invalid'); }, RangeError);
14 assertThrows(function() { ''.normalize(null) }, RangeError);
15 assertThrows(function() { ''.normalize(true) }, RangeError);
16 assertThrows(function() { ''.normalize(false) }, RangeError);
17 assertThrows(function() { ''.normalize(42) }, RangeError);
18 assertThrows(function() { ''.normalize({}) }, RangeError);
19 assertThrows(function() { ''.normalize([]) }, RangeError);
Dmessages.js393 }, "Invalid array length", RangeError);
398 }, "Invalid array buffer length", RangeError);
403 }, "Invalid array length", RangeError);
408 }, "Invalid code point -1", RangeError);
413 }, "Invalid count value", RangeError);
418 }, "Invalid typed array length", RangeError);
423 }, "The normalization form should be one of NFC, NFD, NFKC, NFKD.", RangeError);
428 }, "toFixed() digits argument must be between 0 and 20", RangeError);
432 }, "toExponential() argument must be between 0 and 20", RangeError);
438 }, "Maximum call stack size exceeded", RangeError);
[all …]
Djson-stringify-recursive.js43 RangeError);
49 assertThrows(function() { JSON.stringify(deepArray); }, RangeError);
54 assertThrows(function() { JSON.stringify(deepObject); }, RangeError);
Dstring-oom-replace-global-regexp-with-string.js16 assertThrows(replace1, RangeError);
26 assertThrows(replace2, RangeError);
Derror-constructors.js77 var errors = [SyntaxError, ReferenceError, TypeError, RangeError, URIError];
95 var errors = [Error, RangeError, EvalError, URIError,
/external/v8/test/webkit/fast/js/
Dnumber-toprecision-expected.txt37 PASS (1234.567).toPrecision(0) threw exception RangeError: toPrecision() argument must be between 1…
38 PASS (1234.567).toPrecision(null) threw exception RangeError: toPrecision() argument must be betwee…
39 PASS (1234.567).toPrecision(false) threw exception RangeError: toPrecision() argument must be betwe…
40 PASS (1234.567).toPrecision('foo') threw exception RangeError: toPrecision() argument must be betwe…
41 PASS (1234.567).toPrecision(-1) threw exception RangeError: toPrecision() argument must be between …
49 PASS (1234.567).toPrecision(22) threw exception RangeError: toPrecision() argument must be between …
50 PASS (1234.567).toPrecision(100) threw exception RangeError: toPrecision() argument must be between…
51 PASS (1234.567).toPrecision(101) threw exception RangeError: toPrecision() argument must be between…
52 PASS (1234.567).toPrecision(posInf) threw exception RangeError: toPrecision() argument must be betw…
53 PASS (1234.567).toPrecision(negInf) threw exception RangeError: toPrecision() argument must be betw…
[all …]
Ddeep-recursion-test-expected.txt29 FAIL msg should be RangeError: Maximum call stack size exceeded.. Was RangeError: Maximum call stac…
30 FAIL msg should be RangeError: Maximum call stack size exceeded.. Was RangeError: Maximum call stac…
31 FAIL msg should be RangeError: Maximum call stack size exceeded.. Was RangeError: Maximum call stac…
32 FAIL msg should be RangeError: Maximum call stack size exceeded.. Was RangeError: Maximum call stac…
Dnumber-toString-expected.txt29 PASS (1234.567).toString(0) threw exception RangeError: toString() radix argument must be between 2…
30 PASS (1234.567).toString(null) threw exception RangeError: toString() radix argument must be betwee…
31 PASS (1234.567).toString(false) threw exception RangeError: toString() radix argument must be betwe…
32 PASS (1234.567).toString('foo') threw exception RangeError: toString() radix argument must be betwe…
33 PASS (1234.567).toString(nan) threw exception RangeError: toString() radix argument must be between…
34 PASS (1234.567).toString(1) threw exception RangeError: toString() radix argument must be between 2…
35 PASS (1234.567).toString(true) threw exception RangeError: toString() radix argument must be betwee…
36 PASS (1234.567).toString('1') threw exception RangeError: toString() radix argument must be between…
73 PASS (1234.567).toString(37) threw exception RangeError: toString() radix argument must be between …
74 PASS (1234.567).toString(-1) threw exception RangeError: toString() radix argument must be between …
[all …]
Dnumber-tofixed-expected.txt68 PASS (1234.567).toFixed(21) threw exception RangeError: toFixed() digits argument must be between 0…
69 PASS (1234.567).toFixed(100) threw exception RangeError: toFixed() digits argument must be between …
70 PASS (1234.567).toFixed(101) threw exception RangeError: toFixed() digits argument must be between …
71 PASS (1234.567).toFixed(-1) threw exception RangeError: toFixed() digits argument must be between 0…
72 PASS (1234.567).toFixed(-4) threw exception RangeError: toFixed() digits argument must be between 0…
73 PASS (1234.567).toFixed(-5) threw exception RangeError: toFixed() digits argument must be between 0…
74 PASS (1234.567).toFixed(-20) threw exception RangeError: toFixed() digits argument must be between …
75 PASS (1234.567).toFixed(-21) threw exception RangeError: toFixed() digits argument must be between …
76 PASS (1234.567).toFixed(posInf) threw exception RangeError: toFixed() digits argument must be betwe…
77 PASS (1234.567).toFixed(negInf) threw exception RangeError: toFixed() digits argument must be betwe…
/external/v8/test/webkit/
Dnumber-toExponential-expected.txt43 PASS (123.456).toExponential(21) threw exception RangeError: toExponential() argument must be betwe…
44 PASS (123.456).toExponential(100) threw exception RangeError: toExponential() argument must be betw…
45 PASS (123.456).toExponential(101) threw exception RangeError: toExponential() argument must be betw…
46 PASS (123.456).toExponential(-1) threw exception RangeError: toExponential() argument must be betwe…
47 PASS (1234.567).toExponential(posInf) threw exception RangeError: toExponential() argument must be …
48 PASS (1234.567).toExponential(negInf) threw exception RangeError: toExponential() argument must be …
/external/v8/test/intl/string/
Dnormalization.js69 assertThrows('"".normalize(1234)', RangeError);
70 assertThrows('"".normalize("BAD")', RangeError);

1234