From c5fd11d7b0338ae7779f69a293964f3440ee3787 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Fri, 7 May 2021 11:53:56 +0200 Subject: [PATCH] Explicitly call process.exit in the node runner to prevent it from hanging --- lib/execjs/support/node_runner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/execjs/support/node_runner.js b/lib/execjs/support/node_runner.js index 2987d9f..dc1b677 100644 --- a/lib/execjs/support/node_runner.js +++ b/lib/execjs/support/node_runner.js @@ -28,4 +28,5 @@ this.process = __process__; print(JSON.stringify(['err', '' + err, err.stack])); } + __process__.exit(0); });