Commit graph

2 commits

Author SHA1 Message Date
Sebastian Herrlinger
1d250bc759 test(codemode): record the conformance cases through the reference's language runtime 2026-11-19 01:53:45 +01:00
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