From 15604da0e7bc8fef2ef7a1c8aa26d84e6a67d150 Mon Sep 17 00:00:00 2001 From: Ross Brunton Date: Mon, 3 Nov 2025 14:06:10 +0000 Subject: [PATCH] Make NodeChildProcessImplementation::exec properly wait on the exec call Previously, the function would not wait for the callback on error. Now it does. --- src/providers/node/child_process/ChildProcessImplementation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/node/child_process/ChildProcessImplementation.ts b/src/providers/node/child_process/ChildProcessImplementation.ts index dc6c6dbb5..e42b4ab98 100644 --- a/src/providers/node/child_process/ChildProcessImplementation.ts +++ b/src/providers/node/child_process/ChildProcessImplementation.ts @@ -5,7 +5,7 @@ export const NodeChildProcessImplementation: NodeChildProcessProvider = { exec: async (path, options, callback) => { // Error is passed directly into resolve to keep compatibility with callback implementations. // Therefore no need to use a `.catch` block - window.node.child_process.exec(path, options) + await window.node.child_process.exec(path, options) .then(err => { if (callback) { callback(err as unknown as Error);