-
Notifications
You must be signed in to change notification settings - Fork 77
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
Top level variables don't have references assigned #56
Comments
I got same bug. var a = 0;
function foo() {
a = 1;
} In this case, Each scope have a reference that its |
For top-level var a = 0;
delete global.a;
a; Technically, we can be certain that the initialisation is a reference, so we could have either one or zero references. But I like the consistency of never tracking references for variables in dynamic scopes. For |
Thanks for explain! |
I'm trying to fix this issue: mysticatea@c644d82 Now, it became passing very simple test cases. I modified I have not found the meaning that I'm sorry, my poor English... |
Great! Let's send pull request! |
Give the following code and using http://mazurov.github.io/escope-demo/;
You can see the variable
a
has an empty references property here, The references are available underscope.references
just not attached to the variable.The text was updated successfully, but these errors were encountered: