You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// test.jstry{require("espree").parse("function fn(a, a) {\n}",{ecmaFeatures: {modules: true}});}catch(err){console.error(require("util").inspect(err));}
$ node test.js
{ [Error: Line 1: Strict mode functionmay not have duplicate parameter names]
index: 15,
lineNumber: 1,
column: -4,
description: 'Strict mode function may not have duplicate parameter names' }
Notice that the column number is -4, when it should be 16 (if I counted correctly). The \n is required, or the column will be correct.
The text was updated successfully, but these errors were encountered:
Originally discovered by @feross in eslint/eslint#3128:
Notice that the column number is -4, when it should be 16 (if I counted correctly). The
\n
is required, or the column will be correct.The text was updated successfully, but these errors were encountered: