blob: a38edd48c6e05d47052c81b646ebf9da8aece861 [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: Unexpected token '}'. Expected ')' to end a compound expression..
PASS Function('return (i + (j)') threw exception SyntaxError: Unexpected token '}'. Expected ')' to end a compound expression..
PASS successfullyParsed is true
TEST COMPLETE