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

Editorial: a couple of fixes for Math #2172

Merged
merged 3 commits into from
Sep 14, 2020
Merged

Editorial: a couple of fixes for Math #2172

merged 3 commits into from
Sep 14, 2020

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Sep 12, 2020

Followup to #2122.

The first commit, 75c3c48, makes it explicit that coercion happens exactly once for each argument to Math.hypot. See #2122 (comment).

The second commit, fb2811b, ensures that Math.hypot(-Infinity) returns Infinity, not -Infinity.

The third commit, 464d064, ensures that all possible side effects in Math.hypot, Math.max, and Math.min happen before the method returns.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@ljharb ljharb requested review from michaelficarra, syg and a team September 12, 2020 05:01
@bakkot bakkot changed the title Editorial: only coerce once in Math.hypot Editorial: a couple of fixes for Math.hypt Sep 12, 2020
@bakkot bakkot changed the title Editorial: a couple of fixes for Math.hypt Editorial: a couple of fixes for Math Sep 12, 2020
spec.html Outdated Show resolved Hide resolved
@ljharb ljharb self-assigned this Sep 13, 2020
@ljharb ljharb requested a review from a team September 13, 2020 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants