From 59b71fb4751fa7d1bc147d38654a37eaea7e2447 Mon Sep 17 00:00:00 2001 From: Felipe Gasper Date: Thu, 21 Apr 2022 08:50:42 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20`process.exitCode`=E2=80=99s=20descriptio?= =?UTF-8?q?n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- std/assembly/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index 8f9fda79fb..dd77110def 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -2131,10 +2131,10 @@ declare namespace process { export const argv: string[]; /** Map of variables in the binary's user environment. */ export const env: Map; - /** Process exit code to use when the process exits gracefully. Defaults to `0`. */ - export var exitCode: i32; /** Terminates the process with either the given exit code, or `process.exitCode` if omitted. */ export function exit(code?: i32): void; + /** `exit()`’s default value. Defaults to `0`. */ + export var exitCode: i32; /** Stream connected to `stdin` (fd `0`). */ export const stdin: ReadableStream; /** Stream connected to `stdout` (fd `1`). */