Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement Iterator.prototype.forEach #619

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Implement Iterator.prototype.forEach #619

merged 1 commit into from
Oct 24, 2024

Conversation

saghul
Copy link
Contributor

@saghul saghul commented Oct 24, 2024

No description provided.

@saghul saghul requested a review from bnoordhuis October 24, 2024 13:33
JS_FreeValue(ctx, method);
return JS_UNDEFINED;
exception:
JS_IteratorClose(ctx, this_val, TRUE);
Copy link
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
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
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
47 checks passed
@saghul saghul deleted the iterator-foreach branch October 24, 2024 17:35
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants