Skip to content

Commit 23a2364

Browse files
committed
remove spurious change and debug print
1 parent ccdf34c commit 23a2364

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/preamble.js

-4
Original file line numberDiff line numberDiff line change
@@ -2230,9 +2230,6 @@ function integrateWasmJS() {
22302230
}
22312231

22322232
function getBinaryPromise() {
2233-
//if (!Module['wasmbinary'] && typeof WebAssembly.instantiateStreaming === 'function') {
2234-
// return fetch(wasmBinaryFile, { credentials: 'same-origin' })
2235-
//}
22362233
// if we don't have the binary yet, and have the Fetch api, use that
22372234
// in some environments, like Electron's render process, Fetch api may be present, but have a different context than expected, let's only use it on the Web
22382235
if (!Module['wasmBinary'] && (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) && typeof fetch === 'function') {
@@ -2340,7 +2337,6 @@ function integrateWasmJS() {
23402337
}
23412338
// Prefer streaming instantiation if available.
23422339
if (!Module['wasmBinary'] && typeof WebAssembly.instantiateStreaming === 'function') {
2343-
console.log("Fetching");
23442340
WebAssembly.instantiateStreaming(fetch(wasmBinaryFile, { credentials: 'same-origin' }), info)
23452341
.then(receiveInstantiatedSource).catch(
23462342
function(reason) {

0 commit comments

Comments
 (0)