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.
1 parent bd5a9a8 commit 5008700Copy full SHA for 5008700
lib/binding_web/binding.js
@@ -878,8 +878,14 @@ class Language {
878
}));
879
}
880
881
+ // emscripten-core/emscripten#12969
882
+ const loadModule =
883
+ typeof loadSideModule === 'function'
884
+ ? loadSideModule
885
+ : loadWebAssemblyModule;
886
+
887
return bytes
- .then(bytes => loadSideModule(bytes, {loadAsync: true}))
888
+ .then(bytes => loadModule(bytes, {loadAsync: true}))
889
.then(mod => {
890
const symbolNames = Object.keys(mod)
891
const functionName = symbolNames.find(key =>
0 commit comments