summaryrefslogtreecommitdiff
path: root/js/workers.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-09-08 01:27:18 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-09-07 12:27:18 -0400
commitf12acdb50bd6afae21d8d033548c012d23ec2791 (patch)
treee61071f25a9dfe3ea853bcaea0ece7307a02bc73 /js/workers.ts
parenta205e8a3c2bf5ba72fe18bd7f224303338956c62 (diff)
Update @typescript-eslint/* to v2.1.0 (#2878)
Diffstat (limited to 'js/workers.ts')
-rw-r--r--js/workers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/workers.ts b/js/workers.ts
index 36c2aa50b..8d42f3585 100644
--- a/js/workers.ts
+++ b/js/workers.ts
@@ -55,7 +55,7 @@ async function hostGetMessage(rid: number): Promise<any> {
}
// Stuff for workers
-export let onmessage: (e: { data: any }) => void = (): void => {};
+export const onmessage: (e: { data: any }) => void = (): void => {};
export function postMessage(data: any): void {
const dataIntArray = encodeMessage(data);
@@ -122,7 +122,7 @@ export interface DenoWorkerOptions extends WorkerOptions {
export class WorkerImpl implements Worker {
private readonly rid: number;
- private isClosing: boolean = false;
+ private isClosing = false;
private readonly isClosedPromise: Promise<void>;
public onerror?: () => void;
public onmessage?: (data: any) => void;