/external/v8/test/mjsunit/harmony/ |
D | block-let-declaration.js | 67 TestLocalThrows("if (true) let x;", SyntaxError); 68 TestLocalThrows("if (true) {} else let x;", SyntaxError); 69 TestLocalThrows("do let x; while (false)", SyntaxError); 70 TestLocalThrows("while (false) let x;", SyntaxError); 71 TestLocalThrows("label: let x;", SyntaxError); 72 TestLocalThrows("for (;false;) let x;", SyntaxError); 73 TestLocalThrows("switch (true) { case true: let x; }", SyntaxError); 74 TestLocalThrows("switch (true) { default: let x; }", SyntaxError); 77 TestLocalThrows("if (true) const x = 1;", SyntaxError); 78 TestLocalThrows("if (true) {} else const x = 1;", SyntaxError); [all …]
|
D | module-parsing.js | 172 assertThrows("export x;", SyntaxError); // It's using eval, so should throw. 173 assertThrows("export let x;", SyntaxError); 174 assertThrows("import x from M;", SyntaxError); 175 assertThrows("module M {};", SyntaxError); 177 assertThrows("{ export x; }", SyntaxError); 178 assertThrows("{ export let x; }", SyntaxError); 179 assertThrows("{ import x from M; }", SyntaxError); 180 assertThrows("{ module M {}; }", SyntaxError); 182 assertThrows("function f() { export x; }", SyntaxError); 183 assertThrows("function f() { export let x; }", SyntaxError); [all …]
|
D | block-for.js | 95 assertThrows("function foo() { 'use strict'; for (let in {}) { } }", SyntaxError); 96 assertThrows("function foo() { 'use strict'; for (let x = 3 in {}) { } }", SyntaxError); 97 assertThrows("function foo() { 'use strict'; for (let x, y in {}) { } }", SyntaxError); 98 assertThrows("function foo() { 'use strict'; for (let x = 3, y in {}) { } }", SyntaxError); 99 assertThrows("function foo() { 'use strict'; for (let x, y = 4 in {}) { } }", SyntaxError); 100 assertThrows("function foo() { 'use strict'; for (let x = 3, y = 4 in {}) { } }", 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 | 31 assertThrows(function() { eval("/foo.bar/y"); }, SyntaxError); 32 assertThrows(function() { eval("/foobar/y"); }, SyntaxError); 33 assertThrows(function() { eval("/foo.bar/gy"); }, SyntaxError); 34 assertThrows(function() { eval("/foobar/gy"); }, SyntaxError); 35 assertThrows(function() { new RegExp("foo.bar", "y"); }, SyntaxError); 36 assertThrows(function() { new RegExp("foobar", "y"); }, SyntaxError); 37 assertThrows(function() { new RegExp("foo.bar", "gy"); }, SyntaxError); 38 assertThrows(function() { new RegExp("foobar", "gy"); }, SyntaxError);
|
D | strict-mode-eval.js | 50 assertInstanceof(e, SyntaxError); 60 assertInstanceof(e, SyntaxError); 70 assertInstanceof(e, SyntaxError); 80 assertInstanceof(e, SyntaxError);
|
/external/v8/test/mjsunit/es6/ |
D | iteration-syntax.js | 38 assertThrows("function f() { for (x of) { } }", SyntaxError); 39 assertThrows("function f() { for (x of y z) { } }", SyntaxError); 40 assertThrows("function f() { for (x of y;) { } }", SyntaxError); 42 assertThrows("function f() { for (var x of) { } }", SyntaxError); 43 assertThrows("function f() { for (var x of y z) { } }", SyntaxError); 44 assertThrows("function f() { for (var x of y;) { } }", SyntaxError); 46 assertThrows("function f() { for (let x of) { } }", SyntaxError); 47 assertThrows("function f() { for (let x of y z) { } }", SyntaxError); 48 assertThrows("function f() { for (let x of y;) { } }", SyntaxError); 50 assertThrows("function f() { for (of y) { } }", 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* g() { yield (function yield() {}); }", SyntaxError); 131 assertThrows("function* g(yield) { yield (10); }", 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 …]
|
D | function-constructor-error-expected.txt | 29 FAIL Function('(i + (j)') should throw SyntaxError: Expected token ')'. Threw exception SyntaxError… 30 FAIL Function('return (i + (j)') should throw SyntaxError: Expected token ')'. Threw exception Synt…
|
/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);
|
D | regress-2686.js | 30 assertThrows(function() { Function('){ function foo(', '}') }, SyntaxError); 32 assertThrows(function() { Function('){ function foo(', '}') }, SyntaxError);
|
/external/v8/test/webkit/ |
D | object-literal-syntax-expected.txt | 29 PASS ({a:1, get a(){}}) threw exception SyntaxError: Object literal may not have data and accessor … 30 PASS ({a:1, set a(v){}}) threw exception SyntaxError: Object literal may not have data and accessor… 31 PASS ({get a(){}, a:1}) threw exception SyntaxError: Object literal may not have data and accessor … 32 PASS ({set a(v){}, a:1}) threw exception SyntaxError: Object literal may not have data and accessor… 33 PASS ({get a(){}, get a(){}}) threw exception SyntaxError: Object literal may not have multiple get… 34 PASS ({set a(v){}, set a(v){}}) threw exception SyntaxError: Object literal may not have multiple g… 35 PASS ({set a(v){}, get a(){}, set a(v){}}) threw exception SyntaxError: Object literal may not have… 36 PASS (function(){({a:1, get a(){}})}) threw exception SyntaxError: Object literal may not have data… 37 PASS (function(){({a:1, set a(v){}})}) threw exception SyntaxError: Object literal may not have dat… 38 PASS (function(){({get a(){}, a:1})}) threw exception SyntaxError: Object literal may not have data… [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/webkit/fast/regex/ |
D | toString-expected.txt | 35 FAIL testForwardSlash("^/$", "/"); should be true. Threw exception SyntaxError: Unexpected end of i… 36 FAIL testForwardSlash("^/$", "/"); should be true. Threw exception SyntaxError: Unexpected end of i… 37 FAIL testForwardSlash("^\/$", "/"); should be true. Threw exception SyntaxError: Unexpected end of … 40 FAIL testForwardSlash("^\\\\/$", "\\/"); should be true. Threw exception SyntaxError: Unexpected en… 41 FAIL testForwardSlash("^\\\\\/$", "\\/"); should be true. Threw exception SyntaxError: Unexpected e… 42 FAIL testForwardSlash("x/x/x", "x\/x\/x"); should be true. Threw exception SyntaxError: Unexpected … 43 FAIL testForwardSlash("x\/x/x", "x\/x\/x"); should be true. Threw exception SyntaxError: Unexpected… 44 FAIL testForwardSlash("x/x\/x", "x\/x\/x"); should be true. Threw exception SyntaxError: Unexpected… 45 FAIL testForwardSlash("x\/x\/x", "x\/x\/x"); should be true. Threw exception SyntaxError: Unexpecte…
|
/external/v8/test/webkit/fast/js/kde/ |
D | parse-expected.txt | 33 PASS function test() { while(0) break lab; } lab: 1 threw exception SyntaxError: Undefined label 'l… 34 PASS function test() { while(0) continue lab; } lab: 1 threw exception SyntaxError: Undefined label… 39 PASS function test() { while(0) break lab } lab: 1 threw exception SyntaxError: Undefined label 'la… 40 PASS function test() { while(0) continue lab } lab: 1 threw exception SyntaxError: Undefined label … 42 PASS var f÷; threw exception SyntaxError: Unexpected token ILLEGAL. 46 PASS var f\u00F7; threw exception SyntaxError: Unexpected token ILLEGAL. 47 PASS var \u0030; threw exception SyntaxError: Unexpected token ILLEGAL. 48 PASS var test = { }; test.i= 0; test.i\u002b= 1; test.i; threw exception SyntaxError: Unexpected to…
|
/external/javassist/src/main/javassist/compiler/ |
D | Parser.java | 54 throw new SyntaxError(lex); in parseMember1() 90 throw new SyntaxError(lex); in parseField() 108 throw new SyntaxError(lex); in parseMethod1() 124 throw new SyntaxError(lex); in parseMethod1() 209 throw new SyntaxError(lex); in parseFormalParam() 283 throw new SyntaxError(lex); in parseBlock() 335 throw new SyntaxError(lex); in parseDo() 339 throw new SyntaxError(lex); in parseDo() 355 throw new SyntaxError(lex); in parseFor() 401 throw new SyntaxError(lex); in parseSwitchBlock() [all …]
|
D | SyntaxError.java | 18 public class SyntaxError extends CompileError { class 19 public SyntaxError(Lex lexer) { in SyntaxError() method in SyntaxError
|
/external/v8/test/mjsunit/harmony/regress/ |
D | regress-2243.js | 30 assertThrows("'use strict'; (function f() { f = 123; })", SyntaxError); 31 assertThrows("(function f() { 'use strict'; f = 123; })", SyntaxError);
|
/external/v8/test/message/ |
D | single-function-literal.out | 1 undefined:1: SyntaxError: Single function literal required 4 SyntaxError: Single function literal required
|
D | isvar.out | 1 *%(basename)s:31: SyntaxError: builtin %%IS_VAR: not a variable 4 SyntaxError: builtin %%IS_VAR: not a variable
|