WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
290889
[JSC] `Array#indexOf` / `Array#includes` should treat +0 and -0 are the same value
https://bugs.webkit.org/show_bug.cgi?id=290889
Summary
[JSC] `Array#indexOf` / `Array#includes` should treat +0 and -0 are the same ...
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
Add attachment
proposed patch, testcase, etc.
Sosuke Suzuki
Comment 1
2025-04-01 16:52:32 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/43432
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
<
rdar://problem/148472519
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug