Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2f856d3a253c3ad7d4d0d1ba21e8ec78772c9e26
      
https://github.com/WebKit/WebKit/commit/2f856d3a253c3ad7d4d0d1ba21e8ec78772c9e26
  Author: Sosuke Suzuki <[email protected]>
  Date:   2025-04-02 (Wed, 02 Apr 2025)

  Changed paths:
    A JSTests/stress/array-prototype-includes-untyped-int32-neg-zero.js
    A JSTests/stress/array-prototype-indexOf-untyped-int32-neg-zero.js
    M Source/JavaScriptCore/dfg/DFGOperations.cpp

  Log Message:
  -----------
  [JSC] `Array#indexOf` / `Array#includes` should treat +0 and -0 are the same 
value
https://bugs.webkit.org/show_bug.cgi?id=290889

Reviewed by Yusuke Suzuki.

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.

* JSTests/stress/array-prototype-includes-untyped-int32-neg-zero.js: Added.
(shouldBe):
(test):
* JSTests/stress/array-prototype-indexOf-untyped-int32-neg-zero.js: Added.
(shouldBe):
(test):
* Source/JavaScriptCore/dfg/DFGOperations.cpp:
(JSC::DFG::JSC_DEFINE_JIT_OPERATION):

Canonical link: https://commits.webkit.org/293134@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to