Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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

wants to merge 2 commits into from

Conversation

xiaoxiaojx
Copy link

@xiaoxiaojx xiaoxiaojx commented Jun 12, 2020

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/_acorn@6.1.1@acorn/dist/acorn.js:2844:13)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant