-
Notifications
You must be signed in to change notification settings - Fork 35
Rebase and clarify text #22
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
Conversation
I'll merge this patch, but happy to have further reviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update @littledan.
I feel like that some changes could be upstreamed directly, especially to sync with other proposals.
</div> | ||
|
||
<div algorithm> | ||
To <dfn>instantate the core of a WebAssembly module</dfn> from a module |module| and imports |imports|, perform the following steps: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"instantiate the core of a WebAssembly module" is a new term? It's not part of the spec
Typo:
instantate -> instantiate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo PR is #23.
What about "instantiate the internals of a WebAssembly module" instead?
1. [=Construct a WebAssembly module object=] from |module| and |bytes|, and return the result. | ||
1. [=Construct a WebAssembly module object=] from |module| and |stableBytes|, and return the result. | ||
|
||
Note: Some implementations may enforce a size limitation on |bytes|. Use of this API is discouraged, in favor of asynchronous APIs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this note is correct, I hope that it will change in the future. Currently only Chrome (as far as I remember) enforce a < 4KB module.
|
||
<pre class="idl"> | ||
dictionary GlobalDescriptor { | ||
required USVString value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this should be a DOMString, but it's off-topic here.
Sorry I forgot that you rebased, some of my comments are not relevant to this change. |
Rebase the proposal on top of tc39/ecma262#1311, top-level await, and WebAssembly/spec#745 .
cc @linclark @xtuc @Ms2ger