From 3c93abd17e281dcc32f284471b7b229323ba59f5 Mon Sep 17 00:00:00 2001 From: Rohit Paul <113459757+RohitPaul0007@users.noreply.github.com> Date: Wed, 30 Aug 2023 03:17:17 +0530 Subject: [PATCH] Update tty.js --- tools/tty.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tty.js b/tools/tty.js index d219581c..8204aac3 100644 --- a/tools/tty.js +++ b/tools/tty.js @@ -5,9 +5,9 @@ try { process.stderr._handle.setBlocking(true); } catch (e) { // ensure output buffers are flushed before process termination - var exit = process.exit; + let exit = process.exit; if ("bufferSize" in process.stdout) process.exit = function() { - var args = [].slice.call(arguments); + let args = [].slice.call(arguments); process.once("uncaughtException", function() { (function callback() { if (process.stdout.bufferSize || process.stderr.bufferSize) {