Update tty.js
This commit is contained in:
parent
f0ca9cfbe6
commit
3c93abd17e
|
|
@ -5,9 +5,9 @@ try {
|
||||||
process.stderr._handle.setBlocking(true);
|
process.stderr._handle.setBlocking(true);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// ensure output buffers are flushed before process termination
|
// ensure output buffers are flushed before process termination
|
||||||
var exit = process.exit;
|
let exit = process.exit;
|
||||||
if ("bufferSize" in process.stdout) process.exit = function() {
|
if ("bufferSize" in process.stdout) process.exit = function() {
|
||||||
var args = [].slice.call(arguments);
|
let args = [].slice.call(arguments);
|
||||||
process.once("uncaughtException", function() {
|
process.once("uncaughtException", function() {
|
||||||
(function callback() {
|
(function callback() {
|
||||||
if (process.stdout.bufferSize || process.stderr.bufferSize) {
|
if (process.stdout.bufferSize || process.stderr.bufferSize) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user