We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3873dec + 3ad8e9e commit 6009ec4Copy full SHA for 6009ec4
tests/test_line_column_num.js
@@ -213,6 +213,16 @@ var a = \`1+1
213
}
214
215
216
+/** dynamic Function parse error should be located the latest token */
217
+function test_line_column13() {
218
+ try {
219
+ eval(`Function("===>", "a");`);
220
+ } catch (e) {
221
+ assert(e.lineNumber, 1, 'test_line_column13');
222
+ assert(e.columnNumber, 20, 'test_line_column13');
223
+ }
224
+}
225
+
226
test_line_column1();
227
test_line_column2();
228
test_line_column3();
@@ -224,4 +234,5 @@ test_line_column8();
234
test_line_column9();
235
test_line_column10();
236
test_line_column11();
-test_line_column12();
237
+test_line_column12();
238
+test_line_column13();
0 commit comments