summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/regex/syntax-errors-expected.txt
blob: 07259b1652eeed3b39a4e2a1594d74558408b400 (plain)
1
2
3
4
5
6
7
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: /[/: Unterminated character class.
PASS: "abc".match("[") should throw an exception and did: SyntaxError: Invalid regular expression: /[/: Unterminated character class.