From b11ae0b8c784548a08e058091dc94f166f0da37d Mon Sep 17 00:00:00 2001 From: Jake Archibald Date: Tue, 29 Sep 2020 16:36:13 +0100 Subject: [PATCH] Missing args --- src/client/lazy-app/worker-bridge/index.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/client/lazy-app/worker-bridge/index.ts b/src/client/lazy-app/worker-bridge/index.ts index bf678dbf..2085ec3d 100644 --- a/src/client/lazy-app/worker-bridge/index.ts +++ b/src/client/lazy-app/worker-bridge/index.ts @@ -52,12 +52,13 @@ for (const methodName of methodNames) { this._terminateWorker(); }, workerTimeout); - return abortable(signal, this._workerApi![methodName]() as any).finally( - () => { - done = true; - clearTimeout(timeoutId); - }, - ); + return abortable( + signal, + this._workerApi![methodName](...args) as any, + ).finally(() => { + done = true; + clearTimeout(timeoutId); + }); }); } as any; }