From 6719c020cf084b2f93ead30a9030081b964a0eca Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Wed, 29 Nov 2017 02:43:16 +0800 Subject: [PATCH] extend Node.js I/O buffer for test --- test/mocha/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mocha/cli.js b/test/mocha/cli.js index 0825b808..18f71d19 100644 --- a/test/mocha/cli.js +++ b/test/mocha/cli.js @@ -16,7 +16,7 @@ describe("bin/uglifyjs", function () { command += semver.satisfies(process.version, ">=4") ? "6" : "5"; command += ',passes=3,keep_fargs=false,unsafe --wrap WrappedUglifyJS'; - exec(command, function (err, stdout) { + exec(command, { maxBuffer: 1048576 }, function (err, stdout) { if (err) throw err; eval(stdout);