Skip to content

Conversation

saghul
Copy link
Contributor

@saghul saghul commented Nov 11, 2024

No description provided.

@saghul saghul requested a review from bnoordhuis November 11, 2024 22:26
JSIteratorHelperData *it;
JSValue ret;

*pdone = FALSE;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

quickjs.c Outdated
Comment on lines 40403 to 40405
if (limit < 0)
fail:
return JS_ThrowRangeError(ctx, "must be positive");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (limit < 0)
fail:
return JS_ThrowRangeError(ctx, "must be positive");
if (limit < 0) {
fail:
return JS_ThrowRangeError(ctx, "must be positive");
}

(dominant style for this kind of thing)

@saghul saghul merged commit 0362c0a into master Nov 12, 2024
47 checks passed
@saghul saghul deleted the iterator-helpers-take branch November 12, 2024 07:10
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