Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a06f333aa19d8feb228501e0b56f8c639b391e70
      
https://github.com/WebKit/WebKit/commit/a06f333aa19d8feb228501e0b56f8c639b391e70
  Author: Angelos Oikonomopoulos <[email protected]>
  Date:   2025-04-25 (Fri, 25 Apr 2025)

  Changed paths:
    M Source/JavaScriptCore/runtime/MathObject.cpp

  Log Message:
  -----------
  Math.hypot with 3 arguments fails ES6 math tests on linux/armv7
https://bugs.webkit.org/show_bug.cgi?id=291074

Reviewed by Yusuke Suzuki.

While Math.hypot(Math.hypot(a, b), c) is mathematically the same as
Math.hypot(a, b, c), in practice the calculation in libstdc++ ends up
slightly off. Use the 3-argument version instead.

AFAICT the libstdc++ implementation does not have the JS-expected
behavior with regard to NaNs, so explicitly check for that.

* Source/JavaScriptCore/runtime/MathObject.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):

Canonical link: https://commits.webkit.org/294127@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