-
Notifications
You must be signed in to change notification settings - Fork 188
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
Make phys_equal more like native #1410
base: master
Are you sure you want to change the base?
Conversation
This change revealed some issues with some js stubs what were returning |
@ty, is there any per difference between the two ? Is |
https://caniuse.com/mdn-javascript_builtins_object_is It’s pretty widely supported! |
some other seems to show that |
eb52732
to
dc2ff61
Compare
I'm not really happy with the current implementation, mostly because the decision to use |
I've changed the implementation. We now keep track of whether |
I'm not sure how much of a difference this PR makes. In most cases, the physical equality will still not behave the same. For instance, this will still return # 0. == 0.;;
- : bool = false |
The most interesting bit is "fixing" That said, looking at the documentation of
|
Fix #1372