Home
last modified time | relevance | path

Searched refs:ReferenceError (Results 1 – 25 of 94) sorted by relevance

1234

/external/v8/test/mjsunit/
Dinvalid-lhs.js32 assertThrows("12 = 12", ReferenceError);
33 assertThrows("x++ = 12", ReferenceError);
34 assertThrows("eval('var x') = 12", ReferenceError);
35 assertThrows("if (false) 12 = 12", ReferenceError);
36 assertDoesNotThrow("if (false) eval('var x') = 12", ReferenceError);
39 assertThrows("12++", ReferenceError);
40 assertThrows("12--", ReferenceError);
41 assertThrows("++12", ReferenceError);
42 assertThrows("--12", ReferenceError);
43 assertThrows("++(eval('12'))", ReferenceError);
[all …]
Dcontext-calls-maintained.js50 assertThrows(function() { f(); }, ReferenceError);
55 assertThrows(function() { f(); }, ReferenceError);
62 assertThrows(function() { f(); }, ReferenceError);
84 assertThrows(function() { foo(); }, ReferenceError);
92 assertThrows(function() { foo(); }, ReferenceError);
106 assertThrows(function() { bar(); }, ReferenceError);
115 assertThrows(function() { bar(); }, ReferenceError);
Derror-constructors.js52 ReferenceError.prototype.__defineSetter__('name', fail); class
53 ReferenceError.prototype.__defineSetter__('message', fail);
54 ReferenceError.prototype.__defineSetter__('stack', fail);
56 var e = new ReferenceError();
59 var e = new ReferenceError('123');
77 var errors = [SyntaxError, ReferenceError, TypeError, RangeError, URIError];
96 SyntaxError, ReferenceError, TypeError, MyError];
Deval-typeof-non-existing.js34 assertThrows('typeof(true ? xxx : yyy)', ReferenceError);
35 assertThrows('with ({}) { typeof(true ? xxx : yyy) }', ReferenceError);
/external/v8/test/mjsunit/regress/
Dregress-3926.js26 assertThrows(function() {f(2)}, ReferenceError);
27 assertThrows(function() {f(3)}, ReferenceError);
40 }, ReferenceError);
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 …]
Dregress-4388.js18 assertThrows("test_hole_check_for_let(1)", ReferenceError);
20 assertThrows("test_hole_check_for_let(1)", ReferenceError);
33 assertThrows("test_hole_check_for_const(1)", ReferenceError);
35 assertThrows("test_hole_check_for_const(1)", ReferenceError);
Dregress-crbug-467531.js15 }, ReferenceError);
25 }, ReferenceError);
Dregress-crbug-477924.js5 var dummy = new ReferenceError("dummy");
7 constructors = [ ReferenceError, TypeError];
/external/v8/test/mjsunit/harmony/
Dmodule-linking.js43 assertThrows(function() { l }, ReferenceError)
44 assertThrows(function() { ll }, ReferenceError)
45 assertThrows(function() { R.l }, ReferenceError)
46 assertThrows(function() { M.l }, ReferenceError)
47 assertThrows(function() { MM.l }, ReferenceError)
48 assertThrows(function() { F.l }, ReferenceError)
49 assertThrows(function() { G.l }, ReferenceError)
50 assertThrows(function() { c }, ReferenceError)
51 assertThrows(function() { cc }, ReferenceError)
52 assertThrows(function() { R.c }, ReferenceError)
[all …]
Dblock-const-assign-sloppy.js39 function(use) { return use + "; const c = 1;" }, ReferenceError,
40 function(use) { return use + "; const x = 0, c = 1;" }, ReferenceError,
41 function(use) { return "const x = (" + use + "), c = 1;" }, ReferenceError,
42 function(use) { return "const c = (" + use + ");" }, ReferenceError,
66 }, ReferenceError,
69 }, ReferenceError,
72 }, ReferenceError,
75 }, ReferenceError,
78 }, ReferenceError,
107 }, ReferenceError,
[all …]
Ddefault-parameters.js186 assertThrows(f11, ReferenceError);
188 assertThrows(f12, ReferenceError);
190 assertThrows(f13, ReferenceError);
212 assertThrows(g11, ReferenceError);
214 assertThrows(g12, ReferenceError);
216 assertThrows(g13, ReferenceError);
244 assertThrows(f11, ReferenceError);
246 assertThrows(f12, ReferenceError);
248 assertThrows(f13, ReferenceError);
260 assertThrows(() => f1(undefined, 4), ReferenceError);
[all …]
Dblock-let-crankshaft-sloppy.js350 assertInstanceof(e, ReferenceError);
358 assertInstanceof(e, ReferenceError);
373 assertInstanceof(e, ReferenceError);
384 assertInstanceof(e, ReferenceError);
398 assertInstanceof(e, ReferenceError);
406 assertInstanceof(e, ReferenceError);
421 assertInstanceof(e, ReferenceError);
432 assertInstanceof(e, ReferenceError);
Ddefault-parameters-debug.js24 }, ReferenceError);
28 }, ReferenceError);
35 }, ReferenceError);
/external/v8/test/mjsunit/es6/
Dblock-const-assign.js39 function(use) { return use + "; const c = 1;" }, ReferenceError,
40 function(use) { return use + "; const x = 0, c = 1;" }, ReferenceError,
41 function(use) { return "const x = (" + use + "), c = 1;" }, ReferenceError,
42 function(use) { return "const c = (" + use + ");" }, ReferenceError,
66 }, ReferenceError,
69 }, ReferenceError,
72 }, ReferenceError,
75 }, ReferenceError,
78 }, ReferenceError,
107 }, ReferenceError,
[all …]
Dblock-scope-class.js34 "function f() { return x; }; f(); class x { };", ReferenceError);
36 "f(); function f() { return x; }; class x { };", ReferenceError);
38 "f(); class x { }; function f() { return x; };", ReferenceError);
41 ReferenceError);
42 AssertThrowsStrictAndSloppy("x = 3; class x { };", ReferenceError)
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);
Dnew-target.js406 assertThrows(function() { Function("new.target = 42"); }, ReferenceError);
407 assertThrows(function() { Function("var foo = 1; new.target = foo = 42"); }, ReferenceError);
408 assertThrows(function() { Function("var foo = 1; foo = new.target = 42"); }, ReferenceError);
409 assertThrows(function() { Function("new.target--"); }, ReferenceError);
410 assertThrows(function() { Function("--new.target"); }, ReferenceError);
411 assertThrows(function() { Function("(new.target)++"); }, ReferenceError);
412 assertThrows(function() { Function("++(new.target)"); }, ReferenceError);
Dclasses-experimental.js59 assertTrue(exn instanceof ReferenceError);
89 assertTrue(exn instanceof ReferenceError);
107 assertThrows(function() { new BadSubclass(); }, ReferenceError);
132 assertTrue(exn instanceof ReferenceError);
143 assertTrue(exn instanceof ReferenceError);
154 assertTrue(exn instanceof ReferenceError);
/external/v8/test/webkit/fast/js/
Dfunction-toString-parentheses-expected.txt237 FAIL compileAndSerialize('(a = b) = c') should be (a = b) = c. Threw exception ReferenceError: Inva…
242 PASS compileAndSerialize('a + b = c') threw exception ReferenceError: Invalid left-hand side in ass…
243 FAIL compileAndSerialize('(a + b) = c') should be (a + b) = c. Threw exception ReferenceError: Inva…
246 FAIL compileAndSerialize('(a *= b) *= c') should be (a *= b) *= c. Threw exception ReferenceError: …
249 FAIL compileAndSerialize('(a = b) *= c') should be (a = b) *= c. Threw exception ReferenceError: In…
254 PASS compileAndSerialize('a + b *= c') threw exception ReferenceError: Invalid left-hand side in as…
255 FAIL compileAndSerialize('(a + b) *= c') should be (a + b) *= c. Threw exception ReferenceError: In…
258 FAIL compileAndSerialize('(a /= b) /= c') should be (a /= b) /= c. Threw exception ReferenceError: …
261 FAIL compileAndSerialize('(a = b) /= c') should be (a = b) /= c. Threw exception ReferenceError: In…
266 PASS compileAndSerialize('a + b /= c') threw exception ReferenceError: Invalid left-hand side in as…
[all …]
Dmodify-non-references-expected.txt30 PASS Number()++ threw exception ReferenceError: Invalid left-hand side expression in postfix operat…
31 PASS Number()-- threw exception ReferenceError: Invalid left-hand side expression in postfix operat…
32 PASS ++Number() threw exception ReferenceError: Invalid left-hand side expression in prefix operati…
33 PASS --Number() threw exception ReferenceError: Invalid left-hand side expression in prefix operati…
34 PASS Number() = 1 threw exception ReferenceError: Invalid left-hand side in assignment.
35 PASS Number() += 1 threw exception ReferenceError: Invalid left-hand side in assignment.
/external/v8/test/mjsunit/strong/
Dmutually-recursive-classes.js18 ReferenceError);
27 ReferenceError);
29 ReferenceError);
35 ReferenceError);
39 ReferenceError);
41 ReferenceError);
/external/v8/test/mjsunit/es6/regress/
Dregress-468661.js12 [ReferenceError, undefined, 0, 0, 0, 0, 1, ReferenceError, ReferenceError];
38 if (expected_values[break_count] === ReferenceError) {
39 assertTrue(v instanceof ReferenceError);
Dregress-2322.js30 assertThrows("'use strict'; for (let x in x);", ReferenceError);
34 assertThrows(function() { pppp = true }, ReferenceError);
/external/v8/test/webkit/
Dclass-syntax-name-expected.txt7 PASS A threw exception ReferenceError: A is not defined.
8 PASS 'use strict'; A threw exception ReferenceError: A is not defined.
35 PASS A threw exception ReferenceError: A is not defined.
36 PASS 'use strict'; A threw exception ReferenceError: A is not defined.
47 PASS (class A {}); A threw exception ReferenceError: A is not defined.
48 PASS 'use strict'; (class A {}); A threw exception ReferenceError: A is not defined.
59 PASS class A {}; (class B extends A {}); B threw exception ReferenceError: B is not defined.
60 PASS 'use strict'; class A {}; (class B extends A {}); B threw exception ReferenceError: B is not d…
73 PASS A threw exception ReferenceError: A is not defined.
74 PASS 'use strict'; A threw exception ReferenceError: A is not defined.
[all …]
Dclass-syntax-super-expected.txt21 PASS (new x).method1() threw exception ReferenceError: Unsupported reference to 'super'.
22 PASS (new x).method2() threw exception ReferenceError: Unsupported reference to 'super'.
25 PASS new (class extends Base { constructor() { return undefined } }) threw exception ReferenceError
29 PASS new (class extends Base { constructor() { } }) threw exception ReferenceError: this is not def…
31 PASS new (class extends null { constructor() { return undefined } }) threw exception ReferenceError
35 PASS new (class extends null { constructor() { } }) threw exception ReferenceError: this is not def…

1234