Fix DoubleToInteger to never return -0
DoubleToInteger, which corresponds to the ToIntegerOrInfinity AO in ecma262, never returns -0. Currently there's a bug as std::ceil can return -0. Bug: v8:10271 Change-Id: Id5e7d040ef9d186462022dc96052d7920be6ebed Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3869196 Commit-Queue: Shu-yu Guo <syg@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/main@{#82950}
Showing
Please
register
or
sign in
to comment