From fc3a966a2d0be8fc76c384603bf18b55e0bbcf14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 13 Jun 2022 23:53:04 +0200 Subject: Deno.exit() is an alias to self.close() in worker contexts (#14826) This commit changes Deno.exit() to be an alias to self.close() in worker contexts, and the provided exit code becomes is ignored. --- cli/dts/lib.deno.ns.d.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index f9c999cb3..675f5e7e6 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -480,6 +480,8 @@ declare namespace Deno { /** Exit the Deno process with optional exit code. If no exit code is supplied * then Deno will exit with return code of 0. * + * In worker contexts this is an alias to `self.close();`. + * * ```ts * Deno.exit(5); * ``` -- cgit v1.2.3