Skip to content

Commit 3e921f3

Browse files
committed
ZLib should check for _compressFile rather than _main to see if the module has been instantiated
Since _main isn't exported by the module we end up recreating the instance/module on each iteration.
1 parent 539ab94 commit 3e921f3

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)