es-check icon indicating copy to clipboard operation
es-check copied to clipboard

feat(index.js): supports printing source code logs

Open xiaoxiaojx opened this issue 4 years ago • 0 comments

why

I'm a user of this library. I often find it hard to locate the source code, so I want to add this function

after

ES-Check: there were 1 ES version matching errors.

Source code file path:
  es6/test.js?

Source code snippets:
  2  var isTest = true
  3  const version = window.version   <------ Error(3:0)
  4  console.log(version)


ES-Check Error:
----
· erroring file: ./build/static/js/main.4e7cf41f.js
· error: SyntaxError: The keyword 'const' is reserved (1:44871)
· see the printed err.stack below for context
----
            SyntaxError: The keyword 'const' is reserved (1:44871)
    at Parser.pp$4.raise (/Users/xxxx/Work/me/es-check/node_modules/[email protected]@acorn/dist/acorn.js:2844:13)

xiaoxiaojx avatar Jun 12 '20 19:06 xiaoxiaojx