blob: cb741839114598adaa3ab91ba5e3921ed938229f [file] [log] [blame]
description(
"This test checks that the Function constructor works correctly in the presence of single line comments."
);
shouldBeTrue("(new Function('return true//'))()");
shouldBeTrue("(new Function('return true;//'))()");
shouldBeTrue("(new Function('a', 'return a//'))(true)");
shouldBeTrue("(new Function('a', 'return a;//'))(true)");