Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run the instrumented code containing 'const' #148

Open
ChangXiaoning opened this issue Dec 10, 2018 · 1 comment
Open

Cannot run the instrumented code containing 'const' #148

ChangXiaoning opened this issue Dec 10, 2018 · 1 comment

Comments

@ChangXiaoning
Copy link

I am trying to analyze some code that declaring variables using 'const', like:
···
const str='hello world!';
console.log(str);
···
However, when I run the instrumented code, an ReferenceError exception is thrown, telling me the variable is not defined. When I inspect the code, the variable triggering the exception is declared by the reserved key 'const'. I notice there has already been a closed issue:
#41
The issue is to support constant variables.
I want to know how to deal with this problem, except that I manually convert 'const' to var.

@sp1tz
Copy link

sp1tz commented Dec 2, 2019

we no longer support ES6 const.

See f2f5f59

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

No branches or pull requests

2 participants