/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 | block-for.js | 97 assertThrows("function foo() { 'use strict'; for (let in {}) { } }", SyntaxError); 98 assertThrows("function foo() { 'use strict'; for (let x = 3 in {}) { } }", SyntaxError); 99 assertThrows("function foo() { 'use strict'; for (let x, y in {}) { } }", SyntaxError); 100 assertThrows("function foo() { 'use strict'; for (let x = 3, y in {}) { } }", SyntaxError); 101 assertThrows("function foo() { 'use strict'; for (let x, y = 4 in {}) { } }", SyntaxError); 102 assertThrows("function foo() { 'use strict'; for (let x = 3, y = 4 in {}) { } }", SyntaxError);
|
D | block-early-errors.js | 32 assertInstanceof(e, 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 | strict-mode-eval.js | 50 assertInstanceof(e, SyntaxError); 60 assertInstanceof(e, SyntaxError); 70 assertInstanceof(e, SyntaxError); 80 assertInstanceof(e, SyntaxError);
|
D | extra-commas.js | 34 assertTrue(e instanceof SyntaxError, "is syntax error");
|
D | class-of-builtins.js | 39 Error: [ Error, TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError ]
|
/external/webkit/Source/WebCore/bindings/v8/custom/ |
D | V8AudioContextCustom.cpp | 63 return throwError("Not enough arguments", V8Proxy::SyntaxError); in constructorCallback() 69 return throwError("Invalid number of channels", V8Proxy::SyntaxError); in constructorCallback() 73 return throwError("Invalid number of frames", V8Proxy::SyntaxError); in constructorCallback() 81 return throwError("Error creating AudioContext", V8Proxy::SyntaxError); in constructorCallback() 93 return throwError("Not enough arguments", V8Proxy::SyntaxError); in createBufferCallback() 111 return throwError("Error decoding audio file data", V8Proxy::SyntaxError); in createBufferCallback() 121 return throwError("Not enough arguments", V8Proxy::SyntaxError); in createBufferCallback() 127 return throwError("Invalid number of channels", V8Proxy::SyntaxError); in createBufferCallback() 131 return throwError("Invalid number of frames", V8Proxy::SyntaxError); in createBufferCallback() 137 return throwError("Error creating AudioBuffer", V8Proxy::SyntaxError); in createBufferCallback()
|
D | V8AudioNodeCustom.cpp | 42 return throwError("Not enough arguments", V8Proxy::SyntaxError); in connectCallback() 46 return throwError("Invalid destination node", V8Proxy::SyntaxError); in connectCallback() 54 return throwError("Invalid index parameters", V8Proxy::SyntaxError); in connectCallback() 60 return throwError("Invalid index parameters", V8Proxy::SyntaxError); in connectCallback() 66 return throwError("Invalid index parameter", V8Proxy::SyntaxError); in connectCallback() 78 return throwError("Invalid index parameters", V8Proxy::SyntaxError); in disconnectCallback() 84 return throwError("Invalid index parameter", V8Proxy::SyntaxError); in disconnectCallback()
|
D | V8DataViewCustom.cpp | 42 … return throwError("DOM object constructor cannot be called as a function", V8Proxy::SyntaxError); in constructorCallback() 60 return throwError("Not enough arguments", V8Proxy::SyntaxError); in getInt8Callback() 77 return throwError("Not enough arguments", V8Proxy::SyntaxError); in getUint8Callback() 94 return throwError("Not enough arguments", V8Proxy::SyntaxError); in setInt8Callback() 110 return throwError("Not enough arguments", V8Proxy::SyntaxError); in setUint8Callback()
|
D | V8ClipboardCustom.cpp | 76 return throwError("clearData: Invalid number of arguments", V8Proxy::SyntaxError); in clearDataCallback() 89 return throwError("getData: Invalid number of arguments", V8Proxy::SyntaxError); in getDataCallback() 108 return throwError("setDragImage: Invalid number of arguments", V8Proxy::SyntaxError); in setDragImageCallback()
|
D | V8DOMFormDataCustom.cpp | 48 … return throwError("DOM object constructor cannot be called as a function.", V8Proxy::SyntaxError); in constructorCallback() 64 return throwError("Not enough arguments", V8Proxy::SyntaxError); in appendCallback()
|
D | V8WebSocketCustom.cpp | 55 return throwError("Not enough arguments", V8Proxy::SyntaxError); in constructorCallback() 62 return throwError("Empty URL", V8Proxy::SyntaxError); in constructorCallback()
|
/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-676025.js | 31 assertTrue(result instanceof SyntaxError);
|
D | regress-1110.js | 35 assertTrue(e instanceof SyntaxError);
|
/external/v8/test/es5conform/ |
D | es5conform.status | 111 # SyntaxError.prototype does not have message property. 228 # Invalid test case. Test expects ReferenceError instead of SyntaxError. 233 # Invalid test case. Test expects ReferenceError instead of SyntaxError. 238 # Invalid test case. Test expects ReferenceError instead of SyntaxError. 243 # Invalid test case. SyntaxError should be expected instead of EvalError. 246 # Invalid test case. SyntaxError should be expected instead of EvalError. 250 # Invalid test case. SyntaxError should be expected instead of EvalError. 253 # Invalid test case. SyntaxError should be expected instead of EvalError. 256 # Invalid test case. SyntaxError should be expected instead of EvalError. 259 # Invalid test case. SyntaxError should be expected instead of EvalError. [all …]
|
/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/webkit/Source/JavaScriptCore/tests/mozilla/js1_5/Regress/ |
D | regress-179524.js | 194 actual = e instanceof SyntaxError; 259 actual = e instanceof SyntaxError; 328 actual = e instanceof SyntaxError;
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/LexicalConventions/ |
D | keywords-001.js | 22 if (x instanceof SyntaxError)
|
/external/webkit/LayoutTests/fast/encoding/ |
D | meta-in-script-expected.txt | 1 CONSOLE MESSAGE: line 4: SyntaxError: Parse error
|
/external/webkit/LayoutTests/platform/android-v8/fast/encoding/ |
D | meta-in-script-expected.txt | 1 CONSOLE MESSAGE: line 4: Uncaught SyntaxError: Unexpected token <
|