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

[spec] clean up AddDisposableResource #150

Merged
merged 1 commit into from
Mar 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -1004,11 +1004,8 @@ contributors: Ron Buckton, Ecma International
1. If Type(_V_) is not Object, throw a *TypeError* exception.
1. Let _resource_ be ? CreateDisposableResource(_V_, _hint_).
1. Else,
1. If _V_ is *null* or *undefined*, then
1. Let _resource_ be ? CreateDisposableResource(*undefined*, _hint_, _method_).
1. Else,
1. If Type(_V_) is not Object, throw a *TypeError* exception.
1. Let _resource_ be ? CreateDisposableResource(_V_, _hint_, _method_).
1. Assert: _V_ is *undefined*.
1. Let _resource_ be ? CreateDisposableResource(*undefined*, _hint_, _method_).
1. Append _resource_ to _disposeCapability_.[[DisposableResourceStack]].
1. Return ~unused~.
</emu-alg>
Expand Down