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

Add Math.sumPrecise #697

Merged
merged 1 commit into from
Nov 16, 2024
Merged

Conversation

bnoordhuis
Copy link
Contributor

No description provided.

if (done)
break; // item == JS_UNDEFINED
switch (JS_VALUE_GET_TAG(item)) {
default:
Copy link
Contributor

Choose a reason for hiding this comment

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

Style nit: don't we usually put default at the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but this way the "good" cases are closer to the place where d is used. Easier to read, IMO.

(I'm assuming that wasn't a blocking comment but LMK if it was.)

Copy link
Contributor

Choose a reason for hiding this comment

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

Not blocking, go ahead!

@bnoordhuis bnoordhuis merged commit e1a0f4f into quickjs-ng:master Nov 16, 2024
47 checks passed
@bnoordhuis bnoordhuis deleted the math-sumprecise branch November 16, 2024 10:34
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.

2 participants