HomeSort by relevance Sort by last modified time
    Searched full:assertthrows (Results 1 - 25 of 458) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/v8/test/mjsunit/strong/
empty-statement.js 8 assertThrows("'use strong'; if (1);", SyntaxError);
9 assertThrows("'use strong'; if (1) {} else;", SyntaxError);
10 assertThrows("'use strong'; while (1);", SyntaxError);
11 assertThrows("'use strong'; do; while (1);", SyntaxError);
12 assertThrows("'use strong'; for (;;);", SyntaxError);
13 assertThrows("'use strong'; for (x in []);", SyntaxError);
14 assertThrows("'use strong'; for (x of []);", SyntaxError);
15 assertThrows("'use strong'; for (let x;;);", SyntaxError);
16 assertThrows("'use strong'; for (let x in []);", SyntaxError);
17 assertThrows("'use strong'; for (let x of []);", SyntaxError)
    [all...]
functions.js 13 assertThrows("'use strong'; arguments", SyntaxError);
14 assertThrows("'use strong'; function f() { arguments }", SyntaxError);
15 assertThrows("'use strong'; function* g() { arguments }", SyntaxError);
16 assertThrows("'use strong'; let f = function() { arguments }", SyntaxError);
17 assertThrows("'use strong'; let g = function*() { arguments }", SyntaxError);
18 assertThrows("'use strong'; let f = () => arguments", SyntaxError);
20 assertThrows("'use strong'; let arguments", SyntaxError);
21 assertThrows("'use strong'; function f(arguments) {}", SyntaxError);
22 assertThrows("'use strong'; function* g(arguments) {}", SyntaxError);
23 assertThrows("'use strong'; let f = (arguments) => {}", SyntaxError)
    [all...]
load-builtins.js 26 assertThrows(function(){"use strong"; builtin.foo}, TypeError);
27 assertThrows(function(){"use strong"; builtin[0]}, TypeError);
28 assertThrows(function(){"use strong"; builtin[10000]}, TypeError);
31 assertThrows(function(){"use strong"; builtin.bar});
32 assertThrows(function(){"use strong"; builtin[0]}, TypeError);
33 assertThrows(function(){"use strong"; builtin[10000]}, TypeError);
36 assertThrows(function(){"use strong"; builtin.bar});
38 assertThrows(function(){"use strong"; builtin[10000]}, TypeError);
use-strong.js 8 assertThrows("'use strong'; 0 == 0", SyntaxError);
9 assertThrows("'use strong'; try {} catch(e) { { 0 == 0 } }", SyntaxError);
10 assertThrows("function f() { 'use strong'; 0 == 0 }", SyntaxError);
11 assertThrows("'use strong'; function f() { 0 == 0 }", SyntaxError);
12 assertThrows("'use strong'; function f() { function g() { 0 == 0 } }", SyntaxError);
18 assertThrows("'use strict'; 'use strong'; 0 == 0", SyntaxError);
19 assertThrows("'use strong'; 'use strict'; 0 == 0", SyntaxError);
20 assertThrows("'use strong'; 'use strong'; 0 == 0", SyntaxError);
21 assertThrows("'use strict'; function f() { 'use strong'; 0 == 0 }", SyntaxError);
22 assertThrows("'use strong'; function f() { 'use strict'; 0 == 0 }", SyntaxError)
    [all...]
eval-direct.js 9 assertThrows("'use strong'; eval();", SyntaxError);
10 assertThrows("'use strong'; (eval)();", SyntaxError);
11 assertThrows("'use strong'; (((eval)))();", SyntaxError);
12 assertThrows("'use strong'; eval([]);", SyntaxError);
13 assertThrows("'use strong'; eval('function f() {}');", SyntaxError);
14 assertThrows("'use strong'; function f() {eval()}", SyntaxError);
arrays.js 8 assertThrows("'use strong'; [,]", SyntaxError);
9 assertThrows("'use strong'; [,3]", SyntaxError);
10 assertThrows("'use strong'; [3,,4]", SyntaxError);
  /external/v8/test/mjsunit/wasm/
verify-function-basic-errors.js 9 assertThrows(function() { _WASMEXP_.verifyFunction(); })
10 assertThrows(function() { _WASMEXP_.verifyFunction(0); })
11 assertThrows(function() { _WASMEXP_.verifyFunction("s"); })
12 assertThrows(function() { _WASMEXP_.verifyFunction(undefined); })
13 assertThrows(function() { _WASMEXP_.verifyFunction(1.1); })
14 assertThrows(function() { _WASMEXP_.verifyFunction(1/0); })
15 assertThrows(function() { _WASMEXP_.verifyFunction(null); })
16 assertThrows(function() { _WASMEXP_.verifyFunction(new Foo()); })
17 assertThrows(function() { _WASMEXP_.verifyFunction(new ArrayBuffer(0)); })
18 assertThrows(function() { _WASMEXP_.verifyFunction(new ArrayBuffer(140000)); }
    [all...]
verify-module-basic-errors.js 9 assertThrows(function() { _WASMEXP_.verifyModule(); })
10 assertThrows(function() { _WASMEXP_.verifyModule(0); })
11 assertThrows(function() { _WASMEXP_.verifyModule("s"); })
12 assertThrows(function() { _WASMEXP_.verifyModule(undefined); })
13 assertThrows(function() { _WASMEXP_.verifyModule(1.1); })
14 assertThrows(function() { _WASMEXP_.verifyModule(1/0); })
15 assertThrows(function() { _WASMEXP_.verifyModule(null); })
16 assertThrows(function() { _WASMEXP_.verifyModule(new Foo()); })
17 assertThrows(function() { _WASMEXP_.verifyModule(new ArrayBuffer(0)); })
18 assertThrows(function() { _WASMEXP_.verifyModule(new ArrayBuffer(7)); }
    [all...]
  /external/v8/test/mjsunit/es6/regress/
regress-4211.js 5 assertThrows("()=>{}()", SyntaxError);
6 assertThrows("x=>{}()", SyntaxError);
7 assertThrows("(...x)=>{}()", SyntaxError);
8 assertThrows("(x)=>{}()", SyntaxError);
9 assertThrows("(x,y)=>{}()", SyntaxError);
10 assertThrows("(x,y,...z)=>{}()", SyntaxError);
regress-474783.js 14 assertThrows(function() { Subclass(); }, TypeError);
15 assertThrows(function() { Subclass(1); }, TypeError);
16 assertThrows(function() { Subclass(1, 2); }, TypeError);
17 assertThrows(function() { Subclass(1, 2, 3); }, TypeError);
18 assertThrows(function() { Subclass(1, 2, 3, 4); }, TypeError);
20 assertThrows(function() { Subclass.call(); }, TypeError);
21 assertThrows(function() { Subclass.call({}); }, TypeError);
22 assertThrows(function() { Subclass.call({}, 1); }, TypeError);
23 assertThrows(function() { Subclass.call({}, 1, 2); }, TypeError);
24 assertThrows(function() { Subclass.call({}, 1, 2, 3, 4); }, TypeError)
    [all...]
regress-3938.js 7 assertThrows(function() { for (const i = 0; ; i++) {} }, TypeError);
8 assertThrows("'use strict'; for (const i = 0; ; i++) {}", TypeError);
  /external/v8/test/mjsunit/
string-normalize.js 9 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);
compare-known-objects-tostringtag.js 25 assertThrows(function() {le(a, a)});
26 assertThrows(function() {le(a, b)});
27 assertThrows(function() {le(b, a)});
29 assertThrows(function() {lt(a, a)});
30 assertThrows(function() {lt(a, b)});
31 assertThrows(function() {lt(b, a)});
33 assertThrows(function() {ge(a, a)});
34 assertThrows(function() {ge(a, b)});
35 assertThrows(function() {ge(b, a)});
37 assertThrows(function() {gt(a, a)})
    [all...]
invalid-lhs.js 32 assertThrows("12 = 12", ReferenceError);
33 assertThrows("x++ = 12", ReferenceError);
34 assertThrows("eval('var x') = 12", ReferenceError);
35 assertThrows("if (false) 12 = 12", ReferenceError);
39 assertThrows("12++", ReferenceError);
40 assertThrows("12--", ReferenceError);
41 assertThrows("++12", ReferenceError);
42 assertThrows("--12", ReferenceError);
43 assertThrows("++(eval('12'))", ReferenceError);
44 assertThrows("(eval('12'))++", ReferenceError)
    [all...]
parse-surrogates.js 6 assertThrows("var \uD801\uABCD;", SyntaxError);
7 assertThrows("'\\u000\uD801\uABCD'", SyntaxError);
  /external/v8/test/mjsunit/regress/
regress-219.js 60 assertThrows("/a/ii");
62 assertThrows("/a/gii");
64 assertThrows("/a/igi");
66 assertThrows("/a/iig");
68 assertThrows("/a/gimi");
70 assertThrows("/a/giim");
72 assertThrows("/a/igim");
74 assertThrows(function(){ return RegExp("a", "ii"); })
76 assertThrows(function(){ return RegExp("a", "gii"); })
78 assertThrows(function(){ return RegExp("a", "igi"); }
    [all...]
regress-447561.js 6 assertThrows(function() { source });
7 assertThrows(function() { global });
8 assertThrows(function() { ignoreCase });
9 assertThrows(function() { multiline });
regress-builtinbust-1.js 10 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);
regress-3926.js 26 assertThrows(function() {f(2)}, ReferenceError);
27 assertThrows(function() {f(3)}, ReferenceError);
30 assertThrows(function() {
60 assertThrows(g(2), ReferenceError);
61 assertThrows(g(3), ReferenceError);
62 assertThrows(function () {g(4)}, ReferenceError);
63 assertThrows(function () {g(5)}, ReferenceError);
84 assertThrows(h(2), ReferenceError);
85 assertThrows(h(3), ReferenceError);
86 assertThrows(function () {h(4)}, ReferenceError)
    [all...]
  /external/v8/test/mjsunit/harmony/regress/
regress-4585.js 7 assertThrows(`for(const { method() {} } = this) {}`, SyntaxError);
8 assertThrows(`var { method() {} } = this;`, SyntaxError);
9 assertThrows(`for(const { *method() {} } = this) {}`, SyntaxError);
10 assertThrows(`var { *method() {} } = this;`, SyntaxError);
11 assertThrows(`for(var { get foo() {} } = this) {}`, SyntaxError);
12 assertThrows(`for(var { set foo() {} } = this) {}`, SyntaxError);
  /external/v8/test/mjsunit/es6/
generators-poisoned-properties.js 8 assertThrows(function() { return generator.arguments; }, TypeError);
9 assertThrows(function() { return generator.arguments = {}; }, TypeError);
12 assertThrows(function() { return generator.caller; }, TypeError);
13 assertThrows(function() { return generator.caller = {}; }, TypeError);
20 assertThrows(function() { return generator.arguments; }, TypeError);
21 assertThrows(function() { return generator.arguments = {}; }, TypeError);
24 assertThrows(function() { return generator.caller; }, TypeError);
25 assertThrows(function() { return generator.caller = {}; }, TypeError);
classes-derived-return-type.js 17 assertThrows(function() {
20 assertThrows(function() {
23 assertThrows(function() {
26 assertThrows(function() {
29 assertThrows(function() {
47 assertThrows(function() {
50 assertThrows(function() {
53 assertThrows(function() {
56 assertThrows(function() {
59 assertThrows(function()
    [all...]
string-fromcodepoint.js 23 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...]
  /external/v8/test/mjsunit/harmony/
reflect-apply.js 14 assertThrows(function() {
89 assertThrows(function() {
93 assertThrows(function() {
109 assertThrows(function() {
113 assertThrows(function() {
121 assertThrows(function() { Reflect.apply(void 0); }, TypeError);
122 assertThrows(function() { Reflect.apply(null); }, TypeError);
123 assertThrows(function() { Reflect.apply(123); }, TypeError);
124 assertThrows(function() { Reflect.apply("str"); }, TypeError);
125 assertThrows(function() { Reflect.apply(Symbol("x")); }, TypeError)
    [all...]
  /external/v8/test/mjsunit/compiler/
regress-447567.js 5 assertThrows(function () {
9 assertThrows(function() {

Completed in 1516 milliseconds

1 2 3 4 5 6 7 8 91011>>