aboutsummaryrefslogtreecommitdiff
path: root/test/mocha
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-11-17 05:24:02 +0800
committerGitHub <noreply@github.com>2019-11-17 05:24:02 +0800
commit10c1a78772c1d6ca1bc7f78f0fa1f2ab50b07ae2 (patch)
treebd5934e68527c31d35926c754b1173174dcb40eb /test/mocha
parenta6a0319f1c758013e8f1be9632fa30b031144835 (diff)
downloadtracifyjs-10c1a78772c1d6ca1bc7f78f0fa1f2ab50b07ae2.tar.gz
tracifyjs-10c1a78772c1d6ca1bc7f78f0fa1f2ab50b07ae2.zip
fix corner case in `collapse_vars` (#3591)
Diffstat (limited to 'test/mocha')
-rw-r--r--test/mocha/cli.js4
-rw-r--r--test/mocha/spidermonkey.js4
2 files changed, 6 insertions, 2 deletions
diff --git a/test/mocha/cli.js b/test/mocha/cli.js
index 7a484487..dd181769 100644
--- a/test/mocha/cli.js
+++ b/test/mocha/cli.js
@@ -12,7 +12,9 @@ describe("bin/uglifyjs", function() {
it("Should produce a functional build when using --self", function(done) {
this.timeout(30000);
var command = uglifyjscmd + ' --self -cm --wrap WrappedUglifyJS';
- exec(command, function(err, stdout) {
+ exec(command, {
+ maxBuffer: 1048576
+ }, function(err, stdout) {
if (err) throw err;
eval(stdout);
assert.strictEqual(typeof WrappedUglifyJS, "object");
diff --git a/test/mocha/spidermonkey.js b/test/mocha/spidermonkey.js
index 196f1447..32351d03 100644
--- a/test/mocha/spidermonkey.js
+++ b/test/mocha/spidermonkey.js
@@ -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);