blob: 010352e35c056f59a8e4b4118649da238927164d [file] [log] [blame]
This test checks that the Function constructor detects some syntax errors correctly (bug#59795).
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS Function('(i + (j)') threw exception SyntaxError: Expected token ')'.
PASS Function('return (i + (j)') threw exception SyntaxError: Expected token ')'.
PASS successfullyParsed is true
TEST COMPLETE