We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dependenciesFulfilled
emscripten_lazy_load_code
1 parent 43baa09 commit fb88001Copy full SHA for fb88001
src/lib/libasync.js
@@ -551,10 +551,8 @@ addToLibrary({
551
emscripten_lazy_load_code: () => Asyncify.handleSleep((wakeUp) => {
552
// Update the expected wasm binary file to be the lazy one.
553
wasmBinaryFile += '.lazy.wasm';
554
- // Add a callback for when all run dependencies are fulfilled, which happens when async wasm loading is done.
555
- dependenciesFulfilled = wakeUp;
556
- // Load the new wasm.
557
- createWasm();
+ // Load the new wasm. The resulting Promise will resolve once the async loading is done.
+ createWasm().then(() => wakeUp());
558
}),
559
#endif
560
0 commit comments