diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-06-13 23:53:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 23:53:04 +0200 |
commit | fc3a966a2d0be8fc76c384603bf18b55e0bbcf14 (patch) | |
tree | 2a3425488e0a199c035efbdde35c45cae1c22fb7 /cli/dts/lib.deno.ns.d.ts | |
parent | 4a0a412d7cd077ff519b4da8f6ffd1247c6375a5 (diff) |
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.
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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); * ``` |