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

Finish Number::SameValue #52

Merged
merged 3 commits into from Oct 31, 2023
Merged

Finish Number::SameValue #52

merged 3 commits into from Oct 31, 2023

Conversation

ghost
Copy link

@ghost ghost commented Oct 31, 2023

this fixes a todo comment in Number::is referring to the spec for Object.is.
Object.is is implemented via SameValue(x, y), which in turn has a separate branch for numbers: Number::SameValue.

This is the rest of the implementation.

I also identified that Number::is was being used in places where the spec wanted pretty much simple equality, as opposed to SameValue? Although they would both fit.

We should try to get some helpers for comparisons and operations soon, the code is overtly verbose. I'll write some ideas on the Discord server.

Copy link
Collaborator

@aapoalas aapoalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Collaborator

@aapoalas aapoalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, I'm gonna make some changes here.

@aapoalas aapoalas merged commit 2da3eaa into trynova:main Oct 31, 2023
1 check passed
@andreubotella andreubotella mentioned this pull request Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant