Skip to content

Commit 9163dcb

Browse files
authored
Merge pull request #76 from kmiller68/zlib-check-_compressFile-to-setupModule
ZLib should check for _compressFile rather than _main to see if the module has been instantiated
2 parents c3773cd + 3e921f3 commit 9163dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wasm/zlib/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class Benchmark {
66
async runIteration() {
7-
if (!Module._main)
7+
if (!Module._compressFile)
88
await setupModule(Module);
99

1010
Module.FS.writeFile('input', Module.wasmBinary);

0 commit comments

Comments
 (0)