Skip to content
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

Spec's definition of equality is wrong #94

Closed
sparkprime opened this issue Jan 8, 2016 · 0 comments
Closed

Spec's definition of equality is wrong #94

sparkprime opened this issue Jan 8, 2016 · 0 comments

Comments

@sparkprime
Copy link
Member

The spec curtly says == is defined by converting to JSON and doing string comparison. But this is only partially true, because if the values being compared contain functions, conversion to JSON will fail. The actual algorithm first checks if the types of the two values being compared are the same, before recursing. So there needs to be proper operational semantics rules for ==.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant