Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add PromiseCapability wrapper around sync dispose used in anawait using#218

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
rbuckton merged 2 commits intomainfromasync-from-sync-dispose
Apr 10, 2024

Conversation

rbuckton
Copy link
Collaborator

Per discussion in#216 (comment), this adds aPromiseCapability to the wrapper function created around a@@dispose method read by anawait using declaration to ensure that any errors thrown by@@dispose are not thrown synchronously. This is in keeping with the mechanism used in%AsyncFromSyncIteratorPrototype%.next().

@rbucktonrbuckton added needs-consensusA pull request that needs consensus at TC39 plenary normativeIndicates a normative change to the specification labelsMar 22, 2024
@github-actionsGitHub Actions
Copy link

A preview of this PR can be found athttps://tc39.es/proposal-explicit-resource-management/pr/218.

Copy link

@sygsyg left a comment

Choose a reason for hiding this comment

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

Editorially lgtm.

@rbucktonrbuckton added the has-consensusIndicates a pull request reached consensus at TC39 plenary. labelApr 10, 2024
@rbucktonrbuckton merged commitddd0795 intomainApr 10, 2024
@rbucktonrbuckton deleted the async-from-sync-dispose branchApril 10, 2024 18:07
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sygsygsyg approved these changes

@mhofmanmhofmanAwaiting requested review from mhofman

@michaelficarramichaelficarraAwaiting requested review from michaelficarra

@bakkotbakkotAwaiting requested review from bakkot

Assignees
No one assigned
Labels
bugSomething isn't workinghas-consensusIndicates a pull request reached consensus at TC39 plenary.needs-consensusA pull request that needs consensus at TC39 plenarynormativeIndicates a normative change to the specification
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@rbuckton@syg

[8]ページ先頭

©2009-2025 Movatter.jp