diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-07 17:53:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-07 17:53:50 +0800 |
commit | 9809567dfc4d5c3f23c7e6424da9a471a964584a (patch) | |
tree | 4c01ce7d435b04b4a6c6b145a28daf304754e73c /bin | |
parent | 1ee8be8d91dd94a983e853b7abcc64d6dbc6214b (diff) | |
download | tracifyjs-9809567dfc4d5c3f23c7e6424da9a471a964584a.tar.gz tracifyjs-9809567dfc4d5c3f23c7e6424da9a471a964584a.zip |
improve `process.exit()` workaround (#2741)
- use public API
- fix issue with Node.js 0.10 on WIndows
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/uglifyjs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index 718397c1..38917137 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -3,11 +3,7 @@ "use strict"; -// workaround for tty output truncation upon process.exit() -[process.stdout, process.stderr].forEach(function(stream){ - if (stream._handle && stream._handle.setBlocking) - stream._handle.setBlocking(true); -}); +require("../tools/exit"); var fs = require("fs"); var info = require("../package.json"); |