blob: 4251695c9f2d4de8a8326b391dbbb2d923c816f7 [file] [log] [blame]
description(
"This test checks that the Function constructor detects some syntax errors correctly (bug#59795)."
);
shouldThrow("Function('(i + (j)')", '"SyntaxError: Expected token \')\'"');
shouldThrow("Function('return (i + (j)')", '"SyntaxError: Expected token \')\'"');