D.8. Chapter 10
Chapter 10 has three exercises.
D.8.1. Exercise 1
Which Node.js function do you need to call in order to load Emscripten’s generated JavaScript file?
Solution
require
D.8.2. Exercise 2
What Emscripten Module property do you need to implement in order to be informed of when the WebAssembly module is ready to be interacted with?
Solution
onRuntimeInitialized
D.8.3. Exercise 3
How would you modify the index.js file from chapter 8 so that the dynamic linking logic works in Node.js?
Solution
In your WebAssembly\ folder, create an Appendix D\D.8.3\backend\ folder, and then complete the following steps:
Get WebAssembly in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.