Bug 260485
| Summary: | [JSC] Generator functions should not be Annex B hoisting candidates | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Shvayka <ashvayka> |
| Component: | JavaScriptCore | Assignee: | Alexey Shvayka <ashvayka> |
| Status: | RESOLVED FIXED | ||
| Severity: | Major | CC: | webkit-bug-importer |
| Priority: | P1 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
| Bug Depends on: | |||
| Bug Blocks: | 260484 | ||
Alexey Shvayka
Related test262 failures:
* test/language/statements/switch/scope-lex-async-function.js
* test/language/statements/switch/scope-lex-async-generator.js
* test/language/statements/switch/scope-lex-generator.js
Fix: add template parameter to `std::pair<DeclarationResultMask, ScopeRef> declareFunction(const Identifier*)` of Parser.h to avoid hoisting function unconditionally.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/114213545>
Radar WebKit Bug Importer
<rdar://problem/114213642>
Alexey Shvayka
Pull request: https://github.com/WebKit/WebKit/pull/18108
EWS
Committed 268352@main (b215cab40b67): <https://commits.webkit.org/268352@main>
Reviewed commits have been landed. Closing PR #18108 and removing active labels.