Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: be9083436a734d60cc4d14d97c9bfea87cd57b50 https://github.com/WebKit/WebKit/commit/be9083436a734d60cc4d14d97c9bfea87cd57b50 Author: Keita Nonaka <ikonnyak...@gmail.com> Date: 2025-09-01 (Mon, 01 Sep 2025)
Changed paths: M Source/JavaScriptCore/runtime/MathObject.cpp Log Message: ----------- [JSC] `Math.sumPrecise` Enforces Maximum Iterations and Throws `RangeError` https://bugs.webkit.org/show_bug.cgi?id=298174 Reviewed by Sosuke Suzuki. Previously, `Math.sumPrecise` did not throw a `RangeError` when the iteration count exceeded `2 ^ 53 - 1 (9007199254740991)`. This patch ensures that the maximum iteration limit is enforced according to TC39 spec [1]. [1]: https://tc39.es/ecma262/#sec-math.sumprecise * Source/JavaScriptCore/runtime/MathObject.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): Canonical link: https://commits.webkit.org/299384@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes