Bug 268019

Summary: [JSC] Computed property keys of class fields should not be reparsed
Product: WebKit Reporter: Alexey Shvayka <ashvayka>
Component: JavaScriptCoreAssignee: Alexey Shvayka <ashvayka>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 262405    

Description Alexey Shvayka 2024-01-24 11:07:12 PST
because parsing is context-based, and some context like allowance of yield / async is lost when invoking parseClassFieldInitializerSourceElements().
Comment 1 Radar WebKit Bug Importer 2024-01-24 11:07:39 PST
<rdar://problem/121538219>
Comment 2 Alexey Shvayka 2024-01-24 11:18:19 PST
Related test262 failures:
  * test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-yield-expression.js
  * test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-yield-expression.js
  * test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-yield-expression.js
  * test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-yield-expression.js
Comment 3 Alexey Shvayka 2024-01-24 12:20:15 PST
Pull request: https://github.com/WebKit/WebKit/pull/23184
Comment 4 EWS 2024-01-29 12:10:30 PST
Committed 273677@main (5553144b15b7): <https://commits.webkit.org/273677@main>

Reviewed commits have been landed. Closing PR #23184 and removing active labels.