Improve optimizing function() { if(c){return foo} bar();}

closes #1437
This commit is contained in:
Anthony Van de Gejuchte
2017-02-18 18:56:18 +08:00
committed by alexlamsl
parent 7f8d72d9d3
commit dd31d12a91
4 changed files with 107 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ var exec = require("child_process").exec;
describe("bin/uglifyjs", function () {
var uglifyjscmd = '"' + process.argv[0] + '" bin/uglifyjs';
it("should produce a functional build when using --self", function (done) {
this.timeout(5000);
this.timeout(15000);
var command = uglifyjscmd + ' --self -cm --wrap WrappedUglifyJS';