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

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/[email protected]@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