Commit graph

1 commit

Author SHA1 Message Date
kommander
3767364ca8 fix(codemode): match the reference's host for Math.sumPrecise and **
Math.sumPrecise is a port of JavaScriptCore's xsum accumulator as the
reference's Bun ships it, including its rounding of negative sums (Bun's
WebKit predates the fix in 8ee560d748ea, so Math.sumPrecise([-1]) is
-1.0000000000000002 there, and here). ** and Math.pow follow
JavaScriptCore's operationMathPow: square roots for ±0.5 and
square-and-multiply for integer exponents up to 1000, so 10 ** 23 is 1e+23
as in the reference. Touches vm.rs (js_pow).
2026-11-18 18:56:10 +01:00