Home
last modified time | relevance | path

Searched refs:SyntaxError (Results 1 – 25 of 66) sorted by relevance

123

/external/v8/test/mjsunit/harmony/
Dblock-let-declaration.js67 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 …]
Dblock-for.js97 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);
Dblock-early-errors.js32 assertInstanceof(e, SyntaxError);
/external/v8/test/mjsunit/
Dstrict-mode.js61 }, 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 …]
Dkeywords-and-reserved_words.js80 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);
Dstrict-mode-eval.js50 assertInstanceof(e, SyntaxError);
60 assertInstanceof(e, SyntaxError);
70 assertInstanceof(e, SyntaxError);
80 assertInstanceof(e, SyntaxError);
Dextra-commas.js34 assertTrue(e instanceof SyntaxError, "is syntax error");
Dclass-of-builtins.js39 Error: [ Error, TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError ]
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8AudioContextCustom.cpp63 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()
DV8AudioNodeCustom.cpp42 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()
DV8DataViewCustom.cpp42 … 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()
DV8ClipboardCustom.cpp76 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()
DV8DOMFormDataCustom.cpp48 … 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()
DV8WebSocketCustom.cpp55 return throwError("Not enough arguments", V8Proxy::SyntaxError); in constructorCallback()
62 return throwError("Empty URL", V8Proxy::SyntaxError); in constructorCallback()
/external/v8/test/mjsunit/regress/
Dregress-1620.js50 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);
Dregress-1924.js33 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)
Dregress-676025.js31 assertTrue(result instanceof SyntaxError);
Dregress-1110.js35 assertTrue(e instanceof SyntaxError);
/external/v8/test/es5conform/
Des5conform.status111 # 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/
DParser.java54 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 …]
DSyntaxError.java18 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/
Dregress-179524.js194 actual = e instanceof SyntaxError;
259 actual = e instanceof SyntaxError;
328 actual = e instanceof SyntaxError;
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/LexicalConventions/
Dkeywords-001.js22 if (x instanceof SyntaxError)
/external/webkit/LayoutTests/fast/encoding/
Dmeta-in-script-expected.txt1 CONSOLE MESSAGE: line 4: SyntaxError: Parse error
/external/webkit/LayoutTests/platform/android-v8/fast/encoding/
Dmeta-in-script-expected.txt1 CONSOLE MESSAGE: line 4: Uncaught SyntaxError: Unexpected token <

123