WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
156146
When assigning to a sloppy mode hoisting candidate we should bind both its local binding and its 'var' binding
https://bugs.webkit.org/show_bug.cgi?id=156146
Summary
When assigning to a sloppy mode hoisting candidate we should bind both its lo...
Saam Barati
Reported
2016-04-03 11:20:26 PDT
For example, this should work: function foo() { assert(f === undefined); { assert(typeof f === "function") f = 42 assert(f === 42); function f() { } } assert(f === 42); } We can't do this solely inside the bytecode generator. This requires some runtime support for the annoying dynamic cases, i.e: function foo() { assert(f === undefined); { function f() { } with ({}) { assert(typeof f === "function") f = 42 assert(f === 42); } } assert(f === 42); }
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