Bug 257697

Summary: [JSC] delete operator shouldn't perform TDZ checks
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   

Description Alexey Shvayka 2023-06-04 16:12:13 PDT
Delete operator (https://tc39.es/ecma262/#sec-delete-operator-runtime-semantics-evaluation) calls into DeleteBinding abstract op, while TDZ check (and throwing ReferenceErrors) happens in GetBindingValue.
Comment 1 Radar WebKit Bug Importer 2023-06-04 16:12:30 PDT
<rdar://problem/110237888>
Comment 2 Alexey Shvayka 2023-06-04 17:44:33 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14661
Comment 3 EWS 2023-06-15 16:04:00 PDT
Committed 265212@main (fca15e410aef): <https://commits.webkit.org/265212@main>

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