exit

abstract fun exit(code: Int?)

Process Exit

Exit the current process with the specified exit code. This variant works on a host exit code Int.

See also: Node Process API: exit.

Parameters

code

Exit code to use


abstract fun exit(code: Value?)

Process Exit

Exit the current process with the specified exit code. This variant works on a guest Value.

See also: Node Process API: exit.

Parameters

code

Exit code to use


abstract fun exit()

Process Exit

Exit the current process with the specified exit code; uses code 0.

See also: Node Process API: exit.