From 161adfc51b750a7c8c62a898ea9948c2ad5b6cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 29 Jan 2020 18:54:23 +0100 Subject: workers: proper TS libs, more spec-compliant APIs (#3812) * split lib.deno_main.d.ts into: - lib.deno.shared_globals.d.ts - lib.deno.window.d.ts - lib.deno.worker.d.ts * remove no longer used libs: - lib.deno_main.d.ts - lib.deno_worker.d.ts * change module loading to use proper TS library for compilation * align to Worker API spec: - Worker.terminate() - self.close() - self.name --- cli/js/compiler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/js/compiler.ts') diff --git a/cli/js/compiler.ts b/cli/js/compiler.ts index 394c6cf52..f003d7d0b 100644 --- a/cli/js/compiler.ts +++ b/cli/js/compiler.ts @@ -304,7 +304,7 @@ async function tsCompilerOnMessage({ } // The compiler isolate exits after a single message. - globalThis.workerClose(); + globalThis.close(); } async function wasmCompilerOnMessage({ @@ -332,7 +332,7 @@ async function wasmCompilerOnMessage({ util.log("<<< WASM compile end"); // The compiler isolate exits after a single message. - globalThis.workerClose(); + globalThis.close(); } function bootstrapTsCompilerRuntime(): void { -- cgit v1.2.3