Repository navigation
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merging this PR will not alter performance
Comparing Footnotes
|
**only folded when both operands were integers, so4 ** 0.5and0.5 ** -2were kept. Outside its exactly specified cases, Number exponentiation is implementation-approximated, and the evaluator used the hostpowf, which can disagree with engines: Node evaluates63.99218702310463 ** 2to4095.0000000000005, whilepowfreturned4095. That is also why #29994 had to skip nested**in size-based folds.Example
Input (playground for this example; the playground runs the released Oxc version, so it shows the before output):
Before output (
cargo run -p oxc_minifier --example minifier -- input.js --nospace, 66 bytes):After output (same command, 45 bytes):
2 ** 0.5and63.99218702310463 ** 2are kept because their results are not exact.powffor the exactly specified cases (NaN, infinities, zeros, and a negative base with a fractional exponent). Otherwise it computes the result from the operands' binary representation and only returns exact safe integers: fractional exponents need exact square roots (16 ** 0.25), and negative exponents need a power-of-two base (0.5 ** -2).**and counts nested**in size-based folds again.10 ** 400, are no longer evaluated.