aboutsummaryrefslogtreecommitdiff
path: root/tools/exit.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-04-14 03:13:42 +0100
committerGitHub <noreply@github.com>2020-04-14 10:13:42 +0800
commitc4d28e3b2a2d82c7e5e3b398513755b507a75e76 (patch)
tree955bed9c2cfb691ea84abf8476cc2dd0a507f907 /tools/exit.js
parent77261e1ee037f3eea2d5ec80abb1387d4ba5c67e (diff)
downloadtracifyjs-c4d28e3b2a2d82c7e5e3b398513755b507a75e76.tar.gz
tracifyjs-c4d28e3b2a2d82c7e5e3b398513755b507a75e76.zip
expand testing on Node.js versions (#3779)
Diffstat (limited to 'tools/exit.js')
-rw-r--r--tools/exit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/exit.js b/tools/exit.js
index 17048d8e..4dd7141b 100644
--- a/tools/exit.js
+++ b/tools/exit.js
@@ -5,7 +5,7 @@ process.exit = function() {
process.once("uncaughtException", function() {
(function callback() {
if (process.stdout.bufferSize || process.stderr.bufferSize) {
- setImmediate(callback);
+ setTimeout(callback, 1);
} else {
exit.apply(process, args);
}