/external/v8/test/mjsunit/es6/ |
D | block-let-declaration.js | 68 TestLocalThrows("if (true) let x;", SyntaxError); 69 TestLocalThrows("if (true) {} else let x;", SyntaxError); 70 TestLocalThrows("do let x; while (false)", SyntaxError); 71 TestLocalThrows("while (false) let x;", SyntaxError); 72 TestLocalThrows("label: let x;", SyntaxError); 73 TestLocalThrows("for (;false;) let x;", SyntaxError); 78 TestLocalThrows("if (true) const x = 1;", SyntaxError); 79 TestLocalThrows("if (true) {} else const x = 1;", SyntaxError); 80 TestLocalThrows("do const x = 1; while (false)", SyntaxError); 81 TestLocalThrows("while (false) const x = 1;", SyntaxError); [all …]
|
D | generators-parsing.js | 60 assertThrows("function* g() { yield\n* foo }", SyntaxError); 68 assertThrows("function* g() { yield ? yield : yield }", SyntaxError); 97 SyntaxError); 110 assertThrows("function f() { \"use strict\"; yield: 1 }", SyntaxError) 111 assertThrows("function* g() { yield: 1 }", SyntaxError) 118 assertThrows("function* g() { yield = 10; }", SyntaxError); 122 assertThrows("function* g() { yield 3 + yield 4; }", SyntaxError); 125 assertThrows("function f() { \"use strict\"; var yield = 13; }", SyntaxError); 128 assertThrows("function f() { (function* yield() {}); }", SyntaxError); 131 assertThrows("function* g(yield) { yield (10); }", SyntaxError);
|
D | block-scope-class.js | 46 AssertThrowsStrictAndSloppy("class x { }; var x;", SyntaxError); 47 AssertThrowsStrictAndSloppy("var x; class x { };", SyntaxError); 48 AssertThrowsStrictAndSloppy("class x { }; function x() { };", SyntaxError); 49 AssertThrowsStrictAndSloppy("function x() { }; class x { };", SyntaxError); 51 SyntaxError); 53 SyntaxError);
|
/external/v8/test/mjsunit/harmony/ |
D | block-let-declaration-sloppy.js | 68 TestLocalThrows("if (true) let x;", SyntaxError); 69 TestLocalThrows("if (true) {} else let x;", SyntaxError); 70 TestLocalThrows("do let x; while (false)", SyntaxError); 71 TestLocalThrows("while (false) let x;", SyntaxError); 72 TestLocalThrows("label: let x;", SyntaxError); 73 TestLocalThrows("for (;false;) let x;", SyntaxError); 78 TestLocalThrows("if (true) const x = 1;", SyntaxError); 79 TestLocalThrows("if (true) {} else const x = 1;", SyntaxError); 80 TestLocalThrows("do const x = 1; while (false)", SyntaxError); 81 TestLocalThrows("while (false) const x = 1;", SyntaxError); [all …]
|
D | unicode-escapes-in-regexps.js | 116 assertThrows("/\\u/u", SyntaxError); 117 assertThrows("/\\u12/u", SyntaxError); 118 assertThrows("/\\ufoo/u", SyntaxError); 119 assertThrows("/\\x/u", SyntaxError); 120 assertThrows("/\\xfoo/u", SyntaxError); 121 assertThrows("/\\z/u", SyntaxError); 122 assertThrows("/\\8/u", SyntaxError); 123 assertThrows("/\\9/u", SyntaxError); 125 assertThrows("new RegExp('\\\\u', 'u')", SyntaxError); 126 assertThrows("new RegExp('\\\\u12', 'u')", SyntaxError); [all …]
|
D | module-parsing-eval.js | 31 assertThrows("export let x;", SyntaxError); 32 assertThrows("import x from 'http://url';", SyntaxError); 34 assertThrows("{ export let x; }", SyntaxError); 35 assertThrows("{ import x from 'http://url'; }", SyntaxError); 37 assertThrows("function f() { export let x; }", SyntaxError); 38 assertThrows("function f() { import x from 'http://url'; }", SyntaxError); 40 assertThrows("function f() { { export let x; } }", SyntaxError); 41 assertThrows("function f() { { import x from 'http://url'; } }", SyntaxError);
|
/external/v8/test/mjsunit/strong/ |
D | undefined.js | 30 assertThrows(context[0] + code + context[1], SyntaxError); 46 assertThrows("function undefined() {'use strong';}", SyntaxError); 50 assertThrows("function* undefined() {'use strong';}", SyntaxError); 54 assertThrows("(function undefined() {'use strong';});", SyntaxError); 56 assertThrows("{foo: (function undefined(){'use strong';})};", SyntaxError); 60 assertThrows("(function* undefined() {'use strong';})", SyntaxError); 62 assertThrows("{foo: (function* undefined(){'use strong';})};", SyntaxError); 68 SyntaxError); 73 SyntaxError); 78 SyntaxError); [all …]
|
D | 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 …]
|
D | 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);
|
D | 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);
|
D | 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);
|
/external/v8/test/mjsunit/ |
D | strict-mode.js | 61 }, SyntaxError); 71 assertThrows("function foo (x) 'use strict'; {}", SyntaxError); 87 with({}) {}', SyntaxError); 90 CheckStrictMode("with({}) {}", SyntaxError); 93 CheckStrictMode("function eval() {}", SyntaxError); 96 CheckStrictMode("function arguments() {}", SyntaxError); 99 CheckStrictMode("function foo(a, b, eval, c, d) {}", SyntaxError); 102 CheckStrictMode("function foo(a, b, arguments, c, d) {}", SyntaxError); 105 CheckStrictMode("var o = { set foo(eval) {} }", SyntaxError); 108 CheckStrictMode("var o = { set foo(arguments) {} }", SyntaxError); [all …]
|
D | keywords-and-reserved_words.js | 80 assertThrows("var " + word + " = 1;", SyntaxError); 82 assertThrows("typeof (" + word + ");", SyntaxError); 96 assertThrows("function " + word + " () { }", SyntaxError); 97 assertThrows("function foo (" + word + ") {}", SyntaxError); 98 assertThrows("function foo (a, " + word + ") { }", SyntaxError); 99 assertThrows("function foo (" + word + ", a) { }", SyntaxError); 100 assertThrows("function foo (a, " + word + ", b) { }", SyntaxError); 101 assertThrows("var foo = function (" + word + ") { }", SyntaxError); 104 assertThrows("var x = { set foo(" + word + ") { } };", SyntaxError);
|
D | regexp-not-sticky-yet.js | 32 assertThrows(function() { eval("/foo.bar/y"); }, SyntaxError); 33 assertThrows(function() { eval("/foobar/y"); }, SyntaxError); 34 assertThrows(function() { eval("/foo.bar/gy"); }, SyntaxError); 35 assertThrows(function() { eval("/foobar/gy"); }, SyntaxError); 36 assertThrows(function() { new RegExp("foo.bar", "y"); }, SyntaxError); 37 assertThrows(function() { new RegExp("foobar", "y"); }, SyntaxError); 38 assertThrows(function() { new RegExp("foo.bar", "gy"); }, SyntaxError); 39 assertThrows(function() { new RegExp("foobar", "gy"); }, SyntaxError);
|
/external/v8/test/webkit/fast/js/ |
D | basic-strict-mode-expected.txt | 50 PASS Function('"use strict"; with({});') threw exception SyntaxError: Strict mode code may not incl… 56 PASS (function eval(){'use strict';}) threw exception SyntaxError: Unexpected eval or arguments in … 57 PASS (function(){(function eval(){'use strict';})}) threw exception SyntaxError: Unexpected eval or… 58 PASS (function (eval){'use strict';}) threw exception SyntaxError: Unexpected eval or arguments in … 59 PASS (function(){(function (eval){'use strict';})}) threw exception SyntaxError: Unexpected eval or… 60 PASS (function arguments(){'use strict';}) threw exception SyntaxError: Unexpected eval or argument… 61 PASS (function(){(function arguments(){'use strict';})}) threw exception SyntaxError: Unexpected ev… 62 PASS (function (arguments){'use strict';}) threw exception SyntaxError: Unexpected eval or argument… 63 PASS (function(){(function (arguments){'use strict';})}) threw exception SyntaxError: Unexpected ev… 64 PASS (function (){'use strict'; var eval;}) threw exception SyntaxError: Unexpected eval or argumen… [all …]
|
D | numeric-escapes-in-string-literals-expected.txt | 32 PASS eval(stringLiteral) threw exception SyntaxError: Octal literals are not allowed in strict mode… 34 PASS eval(stringLiteral) threw exception SyntaxError: Octal literals are not allowed in strict mode… 40 PASS eval(stringLiteral) threw exception SyntaxError: Octal literals are not allowed in strict mode… 42 PASS eval(stringLiteral) threw exception SyntaxError: Octal literals are not allowed in strict mode… 44 PASS eval(stringLiteral) threw exception SyntaxError: Octal literals are not allowed in strict mode… 46 PASS eval(stringLiteral) threw exception SyntaxError: Octal literals are not allowed in strict mode… 48 PASS eval(stringLiteral) threw exception SyntaxError: Octal literals are not allowed in strict mode… 50 PASS eval(stringLiteral) threw exception SyntaxError: Octal literals are not allowed in strict mode… 52 PASS eval(stringLiteral) threw exception SyntaxError: Octal literals are not allowed in strict mode… 54 PASS eval(stringLiteral) threw exception SyntaxError: Octal literals are not allowed in strict mode… [all …]
|
/external/v8/test/webkit/ |
D | class-syntax-declaration-expected.txt | 18 PASS class threw exception SyntaxError: Unexpected end of input. 19 PASS class [ threw exception SyntaxError: Unexpected token [. 20 PASS class { threw exception SyntaxError: Unexpected token {. 21 PASS class X { threw exception SyntaxError: Unexpected end of input. 22 PASS class X { ( } threw exception SyntaxError: Unexpected token (. 24 PASS class X { constructor() {} constructor() {} } threw exception SyntaxError: A class may only ha… 25 PASS class X { get constructor() {} } threw exception SyntaxError: Class constructor may not be an … 26 PASS class X { set constructor() {} } threw exception SyntaxError: Class constructor may not be an … 29 PASS class X { constructor() {} static prototype() {} } threw exception SyntaxError: Classes may no… 30 PASS class X { constructor() {} static get prototype() {} } threw exception SyntaxError: Classes ma… [all …]
|
D | class-syntax-expression-expected.txt | 18 PASS x = class threw exception SyntaxError: Unexpected end of input. 19 PASS x = class { threw exception SyntaxError: Unexpected end of input. 20 PASS x = class { ( } threw exception SyntaxError: Unexpected token (. 22 PASS x = class { constructor() {} constructor() {} } threw exception SyntaxError: A class may only … 23 PASS x = class { get constructor() {} } threw exception SyntaxError: Class constructor may not be a… 24 PASS x = class { set constructor() {} } threw exception SyntaxError: Class constructor may not be a… 27 PASS x = class { constructor() {} static prototype() {} } threw exception SyntaxError: Classes may … 28 PASS x = class { constructor() {} static get prototype() {} } threw exception SyntaxError: Classes … 29 PASS x = class { constructor() {} static set prototype() {} } threw exception SyntaxError: Classes … 34 PASS x = class { constructor() {} set foo() {} } threw exception SyntaxError: Setter must have exac… [all …]
|
D | js-continue-break-restrictions-expected.txt | 30 PASS if (0) { L:{ break; } } threw exception SyntaxError: Illegal break statement. 31 PASS if (0) { L:{ continue L; } } threw exception SyntaxError: Undefined label 'L'. 32 PASS if (0) { L:{ continue; } } threw exception SyntaxError: Illegal continue statement. 33 PASS if (0) { switch (1) { case 1: continue; } } threw exception SyntaxError: Illegal continue stat… 35 PASS if (0) { A:L:{ break; } } threw exception SyntaxError: Illegal break statement. 36 PASS if (0) { A:L:{ continue L; } } threw exception SyntaxError: Undefined label 'L'. 37 PASS if (0) { A:L:{ continue; } } threw exception SyntaxError: Illegal continue statement. 39 PASS if (0) { L:A:{ break; } } threw exception SyntaxError: Illegal break statement. 40 PASS if (0) { L:A:{ continue L; } } threw exception SyntaxError: Undefined label 'L'. 41 PASS if (0) { L:A:{ continue; } } threw exception SyntaxError: Illegal continue statement. [all …]
|
/external/v8/test/mjsunit/es6/regress/ |
D | 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);
|
/external/v8/test/mjsunit/harmony/regress/ |
D | 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/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/ |
D | tokenizer.py | 137 raise dns.exception.SyntaxError 327 raise dns.exception.SyntaxError 355 raise dns.exception.SyntaxError('unbalanced parentheses') 385 raise dns.exception.SyntaxError 388 raise dns.exception.SyntaxError('newline in quoted string') 402 raise dns.exception.SyntaxError('unbalanced parentheses') 446 raise dns.exception.SyntaxError('expecting an identifier') 448 raise dns.exception.SyntaxError('expecting an integer') 461 raise dns.exception.SyntaxError('%d is not an unsigned 8-bit integer' % value) 474 raise dns.exception.SyntaxError('%d is not an unsigned 16-bit integer' % value) [all …]
|
/external/v8/test/mjsunit/regress/ |
D | regress-1620.js | 50 assertThrows("/x/g\\uim", SyntaxError); 51 assertThrows("/x/g\\u2im", SyntaxError); 52 assertThrows("/x/g\\u22im", SyntaxError); 53 assertThrows("/x/g\\u222im", SyntaxError); 54 assertThrows("/x/g\\\\u2222im", SyntaxError);
|
D | regress-1924.js | 33 assertThrows("a: break a a", SyntaxError) 34 assertThrows("a: break a 1", SyntaxError) 35 assertThrows("a: break a ''", SyntaxError) 36 assertThrows("a: break a var b", SyntaxError) 37 assertThrows("a: break a {}", SyntaxError)
|
D | regress-2470.js | 29 assertThrows('Function("/*", "*/){");', SyntaxError); 32 assertThrows('Function("});(function(){");', SyntaxError); 37 assertThrows('Function("a", "/*", "*/", "/**/");', SyntaxError); 42 assertThrows('Function("a", "//", "//")', SyntaxError);
|