extend Node.js I/O buffer for test

This commit is contained in:
alexlamsl 2017-11-29 02:43:16 +08:00
parent 7bbfd7bad0
commit 6719c020cf

View File

@ -16,7 +16,7 @@ describe("bin/uglifyjs", function () {
command += semver.satisfies(process.version, ">=4") ? "6" : "5"; command += semver.satisfies(process.version, ">=4") ? "6" : "5";
command += ',passes=3,keep_fargs=false,unsafe --wrap WrappedUglifyJS'; 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; if (err) throw err;
eval(stdout); eval(stdout);