fix corner case in collapse_vars (#3591)

This commit is contained in:
Alex Lam S.L
2019-11-17 05:24:02 +08:00
committed by GitHub
parent a6a0319f1c
commit 10c1a78772
4 changed files with 38 additions and 9 deletions

View File

@@ -10,7 +10,9 @@ describe("spidermonkey export/import sanity test", function() {
var command = uglifyjs + " --self -cm --wrap SpiderUglify -o spidermonkey | " +
uglifyjs + " -p spidermonkey -cm";
exec(command, function(err, stdout) {
exec(command, {
maxBuffer: 1048576
}, function(err, stdout) {
if (err) throw err;
eval(stdout);