-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Negative zero broken on ≥ v10.4.0 #25221
Comments
to be clear, the issue is that |
If it helps, this bug seems to persist after the function is optimized by TurboFan and therefore it's likely not an Ignition bug. |
@TimothyGu this seems to be fixed on v11.5.0 as well: > $ node -v
v11.5.0
> $ node -e "console.log(Object.is(-0, 0))"
false |
@ryzokuken You have to use the spread operator prior to the evaluation of -0 to make the bug surface. |
I see. Will try to investigate. > $ node
> [...[]]; console.log(Object.is(-0, 0));
true
undefined |
This was fixed as a side-effect in v8/v8@1c48d52. That's a big change that we probably won't be able to backport. |
@targos there do not seem to be a lot of conflicts in that commit when backprorting it to v11. @nodejs/v8 @psmarshall @bmeurer @hashseed would you be so kind and check what is required to backport the necessary commit? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This appears to be fixed in 10.x. Closing |
V8 versions between 6.7 and 7.0 (inclusive) have a bug where
prints
true
rather thanfalse
. This is reproducible with all Node.js versions after 10.4.0, though it is fixed on master which uses V8 7.1. We should find the V8 commit that fixes this and backport it to LTS at the very least./cc @devsnek, who helped triage this bug
/cc @nodejs/v8
The text was updated successfully, but these errors were encountered: