blob: e94f8ac24d506600d19888dfe3dccaf22f0d2cbd (
plain)
1
2
3
4
5
6
7
8
|
// RegExp after do-while get parsed.
load(libdir + "asserts.js");
assertNoWarning(() => Function("do {} while (true) \n /bar/g"), SyntaxError,
"RegExp in next line should be parsed");
assertNoWarning(() => Function("do {} while (true) /bar/g"), SyntaxError,
"RegExp in same line should be parsed");
|