12 lines
480 B
Plaintext
12 lines
480 B
Plaintext
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
|
|
|