Skip to content

Instantly share code, notes, and snippets.

@binji
Created August 17, 2018 22:20
Show Gist options
  • Save binji/411e3976105a8cc4c783a6f2b938c691 to your computer and use it in GitHub Desktop.
Save binji/411e3976105a8cc4c783a6f2b938c691 to your computer and use it in GitHub Desktop.
2.2. Added Global object cache
3."asynchronously compile a WebAssembly module". Add step 1 "Let promise be a new promise".
3."asynchronously compile a WebAssembly module". Add step 4 "Return promise".
3."compile a WebAssembly module". Change step 2 to unwrap promise.
3."instantiate a WebAssembly Module". add support for imported/exported mutable globals.
3.3. Remove note "Any attempts to detach buffer..."
3.3. Add algorithm "reset the Memory buffer", refactor `memory.grow` and `grow_memory` instruction to use this.
3.4."create a table object". Add step to fetch associated store.
3.5. Add "Globals" section, defining WebAssembly.Global type.
3.6."new Exported Function". Change step 11 to call `SetFunctionLength`.
3.6."call an Exported Function". Change step 11 to "if ret is empty..."
3.6."ToJSValue". Change step 1 to "return the Number value for signed_i32(i32)."
3.6."ToJSValue". Clarify note about NaN payloads.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment