Missing args

This commit is contained in:
Jake Archibald
2020-09-29 16:36:13 +01:00
parent 81d0b38dbd
commit b11ae0b8c7

View File

@@ -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;
}