WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
146981
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
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug