mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
feat: make Child.kill argument optional (#14669)
This commit is contained in:
parent
4e1ca1d178
commit
5ffcbcfcc8
3 changed files with 26 additions and 3 deletions
|
@ -165,7 +165,7 @@
|
|||
};
|
||||
}
|
||||
|
||||
kill(signo) {
|
||||
kill(signo = "SIGTERM") {
|
||||
if (this.#rid === null) {
|
||||
throw new TypeError("Child process has already terminated.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue