HomeSort by relevance Sort by last modified time
    Searched full:syntaxerror (Results 1 - 25 of 132) sorted by null

1 2 3 4 5 6

  /external/v8/test/mjsunit/harmony/
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...]
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);
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/LexicalConventions/
keywords-001.js 22 if (x instanceof SyntaxError)
28 "SyntaxError",
  /external/webkit/LayoutTests/fast/encoding/
meta-in-script-expected.txt 1 CONSOLE MESSAGE: line 4: SyntaxError: Parse error
  /external/webkit/LayoutTests/platform/android-v8/fast/encoding/
meta-in-script-expected.txt 1 CONSOLE MESSAGE: line 4: Uncaught SyntaxError: Unexpected token <
  /external/v8/test/mjsunit/
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...]
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);
strict-mode-eval.js 50 assertInstanceof(e, SyntaxError);
60 assertInstanceof(e, SyntaxError);
70 assertInstanceof(e, SyntaxError);
80 assertInstanceof(e, SyntaxError);
  /external/v8/test/mjsunit/regress/
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)
regress-1620.js 30 // sequences without throwing a SyntaxError. Instead "\u22gk" would
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);
  /external/javassist/src/main/javassist/compiler/
SyntaxError.java 18 public class SyntaxError extends CompileError {
19 public SyntaxError(Lex lexer) {
Parser.java 54 throw new SyntaxError(lex);
90 throw new SyntaxError(lex);
108 throw new SyntaxError(lex);
124 throw new SyntaxError(lex);
209 throw new SyntaxError(lex);
283 throw new SyntaxError(lex);
335 throw new SyntaxError(lex);
339 throw new SyntaxError(lex);
355 throw new SyntaxError(lex);
401 throw new SyntaxError(lex)
    [all...]
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/Exceptions/
exception-008.js 6 * SyntaxError.
13 var TITLE = "Tests for JavaScript Standard Exceptions: SyntaxError";
exception-009.js 15 var TITLE = "Tests for JavaScript Standard Exceptions: SyntaxError";
  /external/webkit/Source/WebCore/bindings/v8/custom/
V8AudioNodeCustom.cpp 42 return throwError("Not enough arguments", V8Proxy::SyntaxError);
46 return throwError("Invalid destination node", V8Proxy::SyntaxError);
54 return throwError("Invalid index parameters", V8Proxy::SyntaxError);
60 return throwError("Invalid index parameters", V8Proxy::SyntaxError);
66 return throwError("Invalid index parameter", V8Proxy::SyntaxError);
78 return throwError("Invalid index parameters", V8Proxy::SyntaxError);
84 return throwError("Invalid index parameter", V8Proxy::SyntaxError);
V8AudioContextCustom.cpp 63 return throwError("Not enough arguments", V8Proxy::SyntaxError);
69 return throwError("Invalid number of channels", V8Proxy::SyntaxError);
73 return throwError("Invalid number of frames", V8Proxy::SyntaxError);
81 return throwError("Error creating AudioContext", V8Proxy::SyntaxError);
93 return throwError("Not enough arguments", V8Proxy::SyntaxError);
111 return throwError("Error decoding audio file data", V8Proxy::SyntaxError);
121 return throwError("Not enough arguments", V8Proxy::SyntaxError);
127 return throwError("Invalid number of channels", V8Proxy::SyntaxError);
131 return throwError("Invalid number of frames", V8Proxy::SyntaxError);
137 return throwError("Error creating AudioBuffer", V8Proxy::SyntaxError);
    [all...]
V8DataViewCustom.cpp 42 return throwError("DOM object constructor cannot be called as a function", V8Proxy::SyntaxError);
60 return throwError("Not enough arguments", V8Proxy::SyntaxError);
77 return throwError("Not enough arguments", V8Proxy::SyntaxError);
94 return throwError("Not enough arguments", V8Proxy::SyntaxError);
110 return throwError("Not enough arguments", V8Proxy::SyntaxError);
  /external/antlr/antlr-3.4/runtime/Python/tests/
t033backtracking.py 20 @testbase.broken("Some bug in the tool", SyntaxError)
  /external/v8/test/preparser/
preparser.expectation 2 # Only mentions tests that throw SyntaxError, and optionally specifies
  /external/webkit/LayoutTests/fast/js/resources/
js-constructors-use-correct-global.js 4 var constructors = ["Object", "Function", "Array", "Number", "String", "Boolean", "RegExp", "Date", "Error", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Image"];
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/Statements/
regress-157509.js 38 * SUMMARY: Testing for SyntaxError on usage of '\' in identifiers
45 var summary = "Testing for SyntaxError on usage of '\\' in identifiers";
46 var TEST_PASSED = 'SyntaxError';
47 var TEST_FAILED = 'Generated an error, but NOT a SyntaxError!';
61 * OK, this should generate a SyntaxError
69 if (e instanceof SyntaxError)
  /external/v8/test/es5conform/
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/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/RegExp/
regress-188206.js 49 var TEST_PASSED = 'SyntaxError';
50 var TEST_FAILED = 'Generated an error, but NOT a SyntaxError!';
84 * Thus we need at least three in a row to provoke a SyntaxError -
130 * a SyntaxError. Note we use checkThis() instead of testThis().
182 * quantifiers in succession - it's a SyntaxError.
220 * Invalid syntax should generate a SyntaxError
233 if (e instanceof SyntaxError)
regress-57631.js 26 * Either error should throw an exception of type SyntaxError,
34 var cnSUCCESS = 'SyntaxError';
35 var cnFAILURE = 'not a SyntaxError';
109 // We expect to get a SyntaxError - test for this:
110 actual = (e instanceof SyntaxError)? cnSUCCESS : cnFAILURE;
  /external/icu4c/i18n/
rbt_pars.cpp 323 int syntaxError(UErrorCode code,
327 return parser.syntaxError(code, rule, start, status);
363 return syntaxError(U_MISPLACED_CURSOR_OFFSET, rule, start, status);
419 return syntaxError(U_UNCLOSED_SEGMENT, rule, start, status);
425 return syntaxError(U_MALFORMED_VARIABLE_REFERENCE, rule, start, status);
431 return syntaxError(U_MALFORMED_SET, rule, start, status);
439 return syntaxError(U_TRAILING_BACKSLASH, rule, start, status);
443 return syntaxError(U_MALFORMED_UNICODE_ESCAPE, rule, start, status);
446 return syntaxError(U_VARIABLE_RANGE_OVERLAP, rule, start, status);
467 return syntaxError(U_UNTERMINATED_QUOTE, rule, start, status)
    [all...]

Completed in 1953 milliseconds

1 2 3 4 5 6