From 5ffcbcfcc84b9cce891acb165bc7644ec4a0fe64 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Thu, 19 May 2022 14:05:57 +0200 Subject: feat: make Child.kill argument optional (#14669) --- runtime/js/40_spawn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/js/40_spawn.js b/runtime/js/40_spawn.js index 77236ee2b..7a2f06b6a 100644 --- a/runtime/js/40_spawn.js +++ b/runtime/js/40_spawn.js @@ -165,7 +165,7 @@ }; } - kill(signo) { + kill(signo = "SIGTERM") { if (this.#rid === null) { throw new TypeError("Child process has already terminated."); } -- cgit v1.2.3