blob: 461f3e12863edf88c26977fde8333dfe793ca23b [file] [log] [blame]
Test regexp compiling to make sure it doens't crash like bug 16127
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS !!/\)[;s]+/ is true
PASS /[/ threw exception SyntaxError: Unterminated regular expression literal '/[/'.
PASS /[a/ threw exception SyntaxError: Unterminated regular expression literal '/[a/'.
PASS /[-/ threw exception SyntaxError: Unterminated regular expression literal '/[-/'.
PASS !!/(a)/ is true
PASS !!/(a){1,3}/ is true
PASS No crashes, yay!
PASS successfullyParsed is true
TEST COMPLETE