We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7477d0c commit 37fa3ceCopy full SHA for 37fa3ce
runtime/js/40_process.js
@@ -299,17 +299,16 @@ class ChildProcess {
299
try {
300
const onAbort = () => this.kill("SIGTERM");
301
signal?.[abortSignal.add](onAbort);
302
+ const waitPromise = op_spawn_wait(this.#rid);
303
+ this.#waitPromise = waitPromise;
304
+ this.#status = PromisePrototypeThen(waitPromise, (res) => {
305
+ signal?.[abortSignal.remove](onAbort);
306
+ this.#waitComplete = true;
307
+ return res;
308
+ });
309
} catch (e) {
310
void e;
311
}
-
- const waitPromise = op_spawn_wait(this.#rid);
- this.#waitPromise = waitPromise;
- this.#status = PromisePrototypeThen(waitPromise, (res) => {
- signal?.[abortSignal.remove](onAbort);
- this.#waitComplete = true;
- return res;
312
- });
313
314
315
#status;
0 commit comments