Source code

Revision control

Copy as Markdown

Other Tools

// Check that error location for RegExp points to the actual line/column inside
// the script instead of inside the pattern.
var line, column;
try {
eval(`
/aaa(/;
123456789;
`);
} catch (e) {
line = e.lineNumber;
column = e.columnNumber;
}
assertEq(line, 3);
assertEq(column, 7);