NEW146981
using "with (o) {...}" shouldn't cause every variable to be closed over
https://bugs.webkit.org/show_bug.cgi?id=146981
Summary using "with (o) {...}" shouldn't cause every variable to be closed over
Saam Barati
Reported 2015-07-15 14:33:04 PDT
For example, consider this: ``` let x, y; with(o) { print(x); } ``` There is no way anything in the "with" may resolve to "y". It's stupid to put it in the JSLexicalEnvironment when it doesn't need to be
Attachments
Note You need to log in before you can comment on or make changes to this bug.