-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
vm: variable declaration persists across two runInContext() #5491
Comments
|
@cjihrig Ah thanks I did'nt get that ! OK, But in the first call to runInContext(), So I'm missing a point here :
Thx in advance for any clarification ! If you think it's useful, I wil send a PR to make the doc more explicit on this. |
This issue might be relevant to what you're seeing - #983.
Yes.
Yes. See Documentation PRs are almost always a good thing, so feel free to make one. |
@cjihrig thx again for your explanation ! It's more clear now, I will send a doc PR soon. |
I'll close, looks like it's resolved? Let me know if I should reopen. |
Yes, it's resolved. A doc improvement would be a good thing IMHO, I will send a PR when I have some time, but it's definitely not a bug. |
Code
Expected result
This code should't throw.
Actual result
This code throw the following error:
let declaration is block-scope, and note that it's not even the same sandbox in the two runInContext(), so how is it possible to get this error ?
Am I wrong somewhere ?
The text was updated successfully, but these errors were encountered: