Bug 257697 - [JSC] delete operator shouldn't perform TDZ checks
Summary: [JSC] delete operator shouldn't perform TDZ checks
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Alexey Shvayka
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-06-04 16:12 PDT by Alexey Shvayka
Modified: 2023-06-15 16:04 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.