blob: 4f9b11e4f5dc7ea7a698d9db1a92489fa8745fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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(/;
012345678;
`);
} catch (e) {
line = e.lineNumber;
column = e.columnNumber;
}
assertEq(line, 3);
assertEq(column, 6);
|