Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamline DisposableStack.prototype.use #143

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

rbuckton
Copy link
Collaborator

This simplifies DisposableStack.prototype.use to use the existing logic in AddDisposableResource handle retrieving the Symbol.dispose method. This is pretty much the same change I made in https://tc39.es/proposal-async-explicit-resource-management/#sec-disposablestack.prototype.use.

@github-actions
Copy link

A preview of this PR can be found at https://tc39.es/proposal-explicit-resource-management/pr/143.

@rbuckton
Copy link
Collaborator Author

NOTE: This is mainly editorial cleanup and does not affect the intended semantics as the spec internal comparisons to null and undefined are not observable.

@rbuckton rbuckton force-pushed the streamline-AddDisposableResource branch from 0bb8232 to 8b001f6 Compare January 31, 2023 19:02
@rbuckton
Copy link
Collaborator Author

I believe this should have no differences in observable semantics, but would appreciate a review to verify.

@rbuckton
Copy link
Collaborator Author

@tc39/ecma262-editors can you review this change?

@rbuckton rbuckton merged commit a6824ae into main Jan 31, 2023
@rbuckton rbuckton deleted the streamline-AddDisposableResource branch January 31, 2023 20:55
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