web: Remove conditional logic for older emscripten versions
This commit is contained in:
parent
51720beeb0
commit
35ce2e47ec
1 changed files with 1 additions and 7 deletions
|
|
@ -901,14 +901,8 @@ class Language {
|
|||
}
|
||||
}
|
||||
|
||||
// emscripten-core/emscripten#12969
|
||||
const loadModule =
|
||||
typeof loadSideModule === 'function'
|
||||
? loadSideModule
|
||||
: loadWebAssemblyModule;
|
||||
|
||||
return bytes
|
||||
.then(bytes => loadModule(bytes, {loadAsync: true}))
|
||||
.then(bytes => loadWebAssemblyModule(bytes, {loadAsync: true}))
|
||||
.then(mod => {
|
||||
const symbolNames = Object.keys(mod)
|
||||
const functionName = symbolNames.find(key =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue