mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 18:19:47 +00:00
[temporary] More reliable issue repro
This commit is contained in:
@@ -4,6 +4,10 @@ import initOxiPNG, { start_worker_thread } from './pkg-parallel';
|
||||
|
||||
export type WorkerInit = [WebAssembly.Module, WebAssembly.Memory];
|
||||
|
||||
// TODO: remove this line.
|
||||
// It allows main thread to wait for a Worker to be created just to repro a possible V8 bug.
|
||||
postMessage(null);
|
||||
|
||||
addEventListener(
|
||||
'message',
|
||||
async (event) => {
|
||||
|
||||
Reference in New Issue
Block a user