regexp-error-location.js (291B)
1 // Check that error location for RegExp points to the actual line/column inside 2 // the script instead of inside the pattern. 3 var line, column; 4 try { 5 eval(` 6 7 /aaa(/; 8 123456789; 9 `); 10 } catch (e) { 11 line = e.lineNumber; 12 column = e.columnNumber; 13 } 14 15 assertEq(line, 3); 16 assertEq(column, 7);