Skip to content

Add Math.sumPrecise#697

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:math-sumprecise
Nov 16, 2024
Merged

Add Math.sumPrecise#697
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:math-sumprecise

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

No description provided.

if (done)
break; // item == JS_UNDEFINED
switch (JS_VALUE_GET_TAG(item)) {
default:
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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

2 participants