Bug 290889

Summary: [JSC] `Array#indexOf` / `Array#includes` should treat +0 and -0 are the same value
Product: WebKit Reporter: Sosuke Suzuki <sosuke>
Component: JavaScriptCoreAssignee: Sosuke Suzuki <sosuke>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Sosuke Suzuki
Reported 2025-04-01 16:51:47 PDT
https://commits.webkit.org/292999@main optimized searching untyped element from int32 array. However, due to this optimization, a bug occurred where searching for -0 would fail to match 0. This patch fixes that bug.
Attachments
Sosuke Suzuki
Comment 1 2025-04-01 16:52:32 PDT
EWS
Comment 2 2025-04-02 16:40:57 PDT
Committed 293134@main (2f856d3a253c): <https://commits.webkit.org/293134@main> Reviewed commits have been landed. Closing PR #43432 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-04-02 16:41:14 PDT
Note You need to log in before you can comment on or make changes to this bug.