-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Normative: Create global properties for sloppy function hosting as vars #888
Conversation
This patch removes a case where a synthetic *undefined* was visible as a result of legacy sloppy-mode function hoisting. This patch addresses tc39#753
I wondered why we decided to use CanDeclareGlobalFunction/CreateGlobalFunctionBinding instead of CanDeclareGlobalVar/CreateGlobalVarBinding, and look what I found -> https://bugs.ecmascript.org/show_bug.cgi?id=4428#c1. 😄 I think @syg should take a look at this change to confirm that this matches what he implemented in SpiderMonkey. |
I'm pretty sure the PR matches my implementation. Sorry I completely forgot to respond to this. |
I think TC39 was happy with this sort of thing ultimately, right? |
I believe we got consensus here. Aside from addressing code review feedback on the tests, does anything else need to be fixed up for this patch to land? |
Spec tests landed: tc39/test262#969 |
d485211
to
caf89a1
Compare
This patch removes a case where a synthetic undefined was visible
as a result of legacy sloppy-mode function hoisting.
This patch addresses #753