-
Notifications
You must be signed in to change notification settings - Fork 164
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
Looking for some clarity on Promise<void> #737
Comments
The first piece of text seems to predate the introduction of So yes, |
Thanks! Makes sense. I think I was reading ‘as the return type’ without realizing that it was referring to the |
I suspect we'd not want And yeah, callbacks definitely need to be able to return |
Honestly, there aren't any use cases I've seen so far for a Promise-typed writable attribute at all. I just checked and there aren't any such attributes in Gecko's IDL, at least. |
In particular, this acknowledges that `Promise<void>` exists. This also ensures that the handling of `void` return types is defined fully. Fixes #737.
That's good, because the spec already says:
since #217. |
Aha! Turns out, Gecko's IDL parser enforces that too, so no wonder there are no writable promise attributes there. ;) |
In particular, this acknowledges that `Promise<void>` exists. This also ensures that the handling of `void` return types is defined fully. Fixes #737.
In the description of void, it’s stated that
However when describing the ES binding rules for Promise types, in the algorithm perform some steps once a promise is settled, it says:
Is
Promise<void>
is permitted, but only as a return type? If so, should the first text be amended to clarify that, or am I misunderstanding what ‘return type’ is inclusive of?The text was updated successfully, but these errors were encountered: