fix(semantic): allow let as arrow function param in sloppy mode#12305
fix(semantic): allow let as arrow function param in sloppy mode#12305overlookmotel wants to merge 1 commit intomainfrom
let as arrow function param in sloppy mode#12305Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Instrumentation Performance ReportMerging #12305 will not alter performanceComparing Summary
|
12caa0c to
ec33e37
Compare
|
I think this is right, but I only based it on observing what NodeJS does. Need to find the part of the spec that covers this and check NodeJS/V8 is right. |
ec33e37 to
5710f38
Compare
9d37edc to
f5e99a8
Compare
f5e99a8 to
b60d63b
Compare
5710f38 to
a3f1d13
Compare
a3f1d13 to
f047374
Compare

Previously semantic would produce an error for this in sloppy mode:
letis legal in this position, but the loop incheck_binding_identifierwould continue searching past the arrow function, and would hit theVariableDeclaratorwhich produces an error.