Skip to content

Commit

Permalink
handle SINGLE_FILE in getBinary (emscripten-core#5296)
Browse files Browse the repository at this point in the history
  • Loading branch information
buu700 committed Jun 15, 2017
1 parent 5fc15eb commit 7830cc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/preamble.js
Original file line number Diff line number Diff line change
Expand Up @@ -2218,6 +2218,9 @@ function integrateWasmJS(Module) {
} else if (Module['readBinary']) {
binary = Module['readBinary'](wasmBinaryFile);
} else {
binary = tryParseAsDataURI(wasmBinaryFile);
}
if (!binary) {
throw "on the web, we need the wasm binary to be preloaded and set on Module['wasmBinary']. emcc.py will do that for you when generating HTML (but not JS)";
}
return binary;
Expand Down

0 comments on commit 7830cc1

Please sign in to comment.