Searched refs:SyntaxError (Results 1 – 25 of 359) sorted by relevance
12345678910>>...15
/third_party/jerryscript/tests/jerry/es2015/ |
D | regexp-unicode.js | 31 assert (e instanceof SyntaxError); 46 assert (e instanceof SyntaxError); 57 assert (e instanceof SyntaxError); 68 assert (e instanceof SyntaxError); 87 assert (e instanceof SyntaxError); 127 assert (e instanceof SyntaxError); 138 assert (e instanceof SyntaxError); 149 assert (e instanceof SyntaxError); 156 assert (e instanceof SyntaxError); 163 assert (e instanceof SyntaxError); [all …]
|
D | new-target.js | 33 assert (ex instanceof SyntaxError); 41 assert (ex instanceof SyntaxError); 101 assert (ex instanceof SyntaxError); 113 assert (ex instanceof SyntaxError); 126 assert (ex instanceof SyntaxError);
|
/third_party/python/Lib/test/ |
D | test_string_literals.py | 93 self.assertRaises(SyntaxError, eval, r""" '\x' """) 94 self.assertRaises(SyntaxError, eval, r""" '\x0' """) 95 self.assertRaises(SyntaxError, eval, r""" '\u' """) 96 self.assertRaises(SyntaxError, eval, r""" '\u0' """) 97 self.assertRaises(SyntaxError, eval, r""" '\u00' """) 98 self.assertRaises(SyntaxError, eval, r""" '\u000' """) 99 self.assertRaises(SyntaxError, eval, r""" '\U' """) 100 self.assertRaises(SyntaxError, eval, r""" '\U0' """) 101 self.assertRaises(SyntaxError, eval, r""" '\U00' """) 102 self.assertRaises(SyntaxError, eval, r""" '\U000' """) [all …]
|
D | test_named_expressions.py | 10 with self.assertRaisesRegex(SyntaxError, "invalid syntax"): 16 with self.assertRaisesRegex(SyntaxError, "invalid syntax"): 22 with self.assertRaisesRegex(SyntaxError, "invalid syntax"): 28 with self.assertRaisesRegex(SyntaxError, "invalid syntax"): 34 with self.assertRaisesRegex(SyntaxError, "cannot use assignment expressions with tuple"): 40 with self.assertRaisesRegex(SyntaxError, "invalid syntax"): 46 with self.assertRaisesRegex(SyntaxError, "invalid syntax"): 52 with self.assertRaisesRegex(SyntaxError, "invalid syntax"): 58 with self.assertRaisesRegex(SyntaxError, "invalid syntax"): 64 with self.assertRaisesRegex(SyntaxError, [all …]
|
D | test_future.py | 42 with self.assertRaises(SyntaxError) as cm: 47 with self.assertRaises(SyntaxError) as cm: 52 with self.assertRaises(SyntaxError) as cm: 57 with self.assertRaises(SyntaxError) as cm: 62 with self.assertRaises(SyntaxError) as cm: 67 with self.assertRaises(SyntaxError) as cm: 72 with self.assertRaises(SyntaxError) as cm: 77 with self.assertRaises(SyntaxError) as cm: 104 except SyntaxError: 111 except SyntaxError: [all …]
|
D | test_source_encoding.py | 35 except SyntaxError as v: 60 self.assertRaises(SyntaxError, eval, b'\xff\x20') 63 self.assertRaises(SyntaxError, eval, b'\xef\x20') 66 self.assertRaises(SyntaxError, eval, b'\xef\xbb\x20') 81 with self.assertRaisesRegex(SyntaxError, 'fake'): 83 with self.assertRaisesRegex(SyntaxError, 'iso-8859-15'): 86 with self.assertRaisesRegex(SyntaxError, 'BOM'): 89 with self.assertRaisesRegex(SyntaxError, 'fake'): 91 with self.assertRaisesRegex(SyntaxError, 'BOM'): 103 self.assertRaises(SyntaxError, __import__, 'test.' + module_name) [all …]
|
D | test_timeit.py | 74 self.assertRaises(SyntaxError, timeit.Timer, stmt='return') 75 self.assertRaises(SyntaxError, timeit.Timer, stmt='yield') 76 self.assertRaises(SyntaxError, timeit.Timer, stmt='yield from ()') 77 self.assertRaises(SyntaxError, timeit.Timer, stmt='break') 78 self.assertRaises(SyntaxError, timeit.Timer, stmt='continue') 79 self.assertRaises(SyntaxError, timeit.Timer, stmt='from timeit import *') 80 self.assertRaises(SyntaxError, timeit.Timer, stmt=' pass') 81 self.assertRaises(SyntaxError, timeit.Timer, 86 self.assertRaises(SyntaxError, timeit.Timer, setup='return') 87 self.assertRaises(SyntaxError, timeit.Timer, setup='yield') [all …]
|
D | test_eof.py | 16 except SyntaxError as msg: 26 except SyntaxError as msg: 43 except SyntaxError as msg: 51 with self.assertRaises(SyntaxError) as excinfo: 54 with self.assertRaises(SyntaxError) as excinfo:
|
D | test_fstring.py | 429 self.assertAllRaise(SyntaxError, 441 self.assertAllRaise(SyntaxError, 'f-string: unterminated string', 449 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\}' " 453 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\)' " 457 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\]' " 461 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\}' " 465 self.assertAllRaise(SyntaxError, r"f-string: closing parenthesis '\}' " 469 self.assertRaises(SyntaxError, eval, "f'{" + "("*500 + "}'") 533 self.assertAllRaise(SyntaxError, "f-string: expecting '}'", 543 self.assertAllRaise(SyntaxError, "f-string expression part cannot include '#'", [all …]
|
D | test_compile.py | 20 self.assertRaises(SyntaxError, self.compile_single, source) 37 self.assertRaises(SyntaxError, compile, '__debug__ = 1', '?', 'single') 46 self.assertRaises(SyntaxError, eval, 'lambda a,a:0') 47 self.assertRaises(SyntaxError, eval, 'lambda a,a=1:0') 48 self.assertRaises(SyntaxError, eval, 'lambda a=1,a=1:0') 49 self.assertRaises(SyntaxError, exec, 'def f(a, a): pass') 50 self.assertRaises(SyntaxError, exec, 'def f(a = 0, a = 1): pass') 51 self.assertRaises(SyntaxError, exec, 'def f(a): global a; a = 1') 54 self.assertRaises(SyntaxError, compile, "1+*3", "filename", "exec") 57 self.assertRaises(SyntaxError, compile, "f(None=1)", "<string>", "exec") [all …]
|
D | test_print.py | 140 with self.assertRaises(SyntaxError) as context: 148 with self.assertRaises(SyntaxError) as context: 156 with self.assertRaises(SyntaxError) as context: 166 with self.assertRaises(SyntaxError) as context: 177 with self.assertRaises(SyntaxError) as context: 185 with self.assertRaises(SyntaxError) as context:
|
D | test_type_comments.py | 237 except SyntaxError as err: 238 raise SyntaxError(str(err) + f" feature_version={feature_version}") 240 with self.assertRaisesRegex(SyntaxError, expected_regex, 410 with self.assertRaises(SyntaxError): 413 with self.assertRaises(SyntaxError): 416 with self.assertRaises(SyntaxError):
|
/third_party/node/test/parallel/ |
D | test-repl.js | 156 expect: [/^Uncaught SyntaxError: /] 213 expect: [/^Uncaught SyntaxError: /] 219 expect: [/^Uncaught SyntaxError: /] 224 expect: [/^Uncaught SyntaxError: /] 230 expect: [/^Uncaught SyntaxError: /] 236 expect: [/^Uncaught SyntaxError: /] 245 /^Uncaught SyntaxError: /, 254 /^Uncaught SyntaxError: /, 263 /^Uncaught SyntaxError: /, 272 /^Uncaught SyntaxError: /, [all …]
|
/third_party/jerryscript/tests/jerry/ |
D | regexp-web-compatibility.js | 131 assert (ex instanceof SyntaxError); 138 assert (ex instanceof SyntaxError); 145 assert (ex instanceof SyntaxError); 152 assert (ex instanceof SyntaxError); 171 assert (ex instanceof SyntaxError); 178 assert (ex instanceof SyntaxError); 185 assert (ex instanceof SyntaxError); 192 assert (ex instanceof SyntaxError);
|
D | error.js | 159 e = new SyntaxError (); 164 e = new SyntaxError("some message"); 174 assert (SyntaxError.prototype.toString === Error.prototype.toString); 175 assert (SyntaxError.prototype.constructor === SyntaxError); 176 assert (SyntaxError.prototype.name === "SyntaxError"); 177 assert (SyntaxError.prototype.message === ""); 178 assert (SyntaxError.prototype.toString() === "SyntaxError");
|
D | regression-test-issue-2204.js | 19 assert(e instanceof SyntaxError) 26 assert(e instanceof SyntaxError) 33 assert(e instanceof SyntaxError)
|
D | regexp-literal.js | 39 assert(e instanceof SyntaxError); 58 assert(e instanceof SyntaxError); 65 assert(e instanceof SyntaxError);
|
D | eval.js | 62 assert (e instanceof SyntaxError); 108 assert (e instanceof SyntaxError); 118 assert (e instanceof SyntaxError);
|
D | regression-test-issue-2230.js | 20 assert (e instanceof SyntaxError); 27 assert (e instanceof SyntaxError);
|
D | regression-test-issue-2237.js | 20 assert (e instanceof SyntaxError); 27 assert (e instanceof SyntaxError);
|
/third_party/node/test/es-module/ |
D | test-esm-cjs-named-error.mjs | 29 name: 'SyntaxError', 36 name: 'SyntaxError', 43 name: 'SyntaxError', 50 name: 'SyntaxError', 57 name: 'SyntaxError', 64 name: 'SyntaxError', 71 name: 'SyntaxError',
|
/third_party/python/Lib/xml/etree/ |
D | ElementPath.py | 87 raise SyntaxError("prefix %r not found in prefix map" % prefix) from None 193 raise SyntaxError("invalid descendant") 313 raise SyntaxError("XPath position >= 1 expected") 316 raise SyntaxError("unsupported function") 321 raise SyntaxError("unsupported expression") 323 raise SyntaxError("XPath offset from last() must be negative") 338 raise SyntaxError("invalid predicate") 376 raise SyntaxError("cannot use absolute path on element") 387 raise SyntaxError("invalid path") from None
|
/third_party/cef/tools/yapf/yapf/yapflib/ |
D | verifier.py | 44 except SyntaxError: 47 except SyntaxError: 51 except SyntaxError: 77 except SyntaxError:
|
/third_party/python/Lib/ |
D | codeop.py | 81 except SyntaxError: # Let other compile() errors propagate. 92 except SyntaxError as e: 97 except SyntaxError as e:
|
/third_party/jerryscript/tests/jerry/es5.1/ |
D | object-literal-fails.js | 24 assert (e instanceof SyntaxError); 39 assert (e instanceof SyntaxError);
|
12345678910>>...15