haikuwebkit/LayoutTests/fast/regex/dom/syntax-errors-expected.txt

8 lines
440 B
Plaintext

This test verifies that implicit creation of a regular expression eagerly checks for syntax errors.
If the test passes, you'll see pass messages below.
PASS: "abc".search("[") should throw an exception and did: SyntaxError: Invalid regular expression: missing terminating ] for character class.
PASS: "abc".match("[") should throw an exception and did: SyntaxError: Invalid regular expression: missing terminating ] for character class.