aboutsummaryrefslogtreecommitdiff
path: root/test/jetstream.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-01-07 17:53:50 +0800
committerGitHub <noreply@github.com>2018-01-07 17:53:50 +0800
commit9809567dfc4d5c3f23c7e6424da9a471a964584a (patch)
tree4c01ce7d435b04b4a6c6b145a28daf304754e73c /test/jetstream.js
parent1ee8be8d91dd94a983e853b7abcc64d6dbc6214b (diff)
downloadtracifyjs-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 'test/jetstream.js')
-rw-r--r--test/jetstream.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/jetstream.js b/test/jetstream.js
index 1cc6d4a7..7ee09df3 100644
--- a/test/jetstream.js
+++ b/test/jetstream.js
@@ -5,11 +5,7 @@
var site = "http://browserbench.org/JetStream";
if (typeof phantom == "undefined") {
- // 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 args = process.argv.slice(2);
var debug = args.indexOf("--debug");
if (debug >= 0) {