summaryrefslogtreecommitdiff
path: root/js/workers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/workers.ts')
-rw-r--r--js/workers.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/workers.ts b/js/workers.ts
index 456449d48..1531b960b 100644
--- a/js/workers.ts
+++ b/js/workers.ts
@@ -161,9 +161,11 @@ export class WorkerImpl implements Worker {
this.rid = createWorker(specifier);
this.run();
this.isClosedPromise = hostGetWorkerClosed(this.rid);
- this.isClosedPromise.then(() => {
- this.isClosing = true;
- });
+ this.isClosedPromise.then(
+ (): void => {
+ this.isClosing = true;
+ }
+ );
}
get closed(): Promise<void> {