Skip to content

Editorial: Mention AsyncDisposableStack in the DisposeResources note - #4100

Open
JinDX wants to merge 1 commit into
tc39:mainfrom
JinDX:editorial/disposeresources-nullish-async-stack-refresh-20261122
Open

JinDX wants to merge 1 commit into
tc39:mainfrom
JinDX:editorial/disposeresources-nullish-async-stack-refresh-20261122

Conversation

@JinDX

@JinDX JinDX commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

The note in DisposeResources says that an asynchronous resource record with no disposal method can only come from a nullish await using initializer. AsyncDisposableStack.prototype.use also passes null or undefined to AddDisposableResource with ~async-dispose~, producing the same record. Mention both ways the record is created.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants