Skip to main content
WASIOptions.returnOnExit - wasi - Node documentation
property WASIOptions.returnOnExit

Usage in Deno

import { type WASIOptions } from "node:wasi";

By default, when WASI applications call __wasi_proc_exit() wasi.start() will return with the exit code specified rather than terminatng the process. Setting this option to false will cause the Node.js process to exit with the specified exit code instead.

Type

boolean | undefined