November 2019
Intermediate to advanced
448 pages
15h 6m
English
Chapter 8 has two exercises.
Suppose you have a side module called process_fulfillment.wasm: how would you create a new instance of Emscripten’s Module object and tell it to dynamically link to this side module?
const fulfillmentModule = new Module({ 1
dynamicLibraries: ['process_fulfillment.wasm'] 2
});
What flag do you need to pass to Emscripten when compiling a WebAssembly main module in order to have the Module object wrapped in a function in Emscripten’s generated JavaScript file?
-s MODULARIZE=1
Read now
Unlock full access