Skip to content

Implement Iterator.prototype.forEach#619

Merged
saghul merged 1 commit intomasterfrom
iterator-foreach
Oct 24, 2024
Merged

Implement Iterator.prototype.forEach#619
saghul merged 1 commit intomasterfrom
iterator-foreach

Conversation

@saghul
Copy link
Copy Markdown
Contributor

@saghul saghul commented Oct 24, 2024

No description provided.

@saghul saghul requested a review from bnoordhuis October 24, 2024 13:33
Comment thread quickjs.c
JS_FreeValue(ctx, method);
return JS_UNDEFINED;
exception:
JS_IteratorClose(ctx, this_val, TRUE);
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.

This calls iterator.return. Is that expected? (I assume so but want to make sure.)

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.

IIrC yeah, a test checks for it, but I'll double check!

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.

@saghul saghul merged commit 3339ef7 into master Oct 24, 2024
@saghul saghul deleted the iterator-foreach branch October 24, 2024 17:35
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