make collapse_vars consistent with toplevel (#1608)

fixes #1605
This commit is contained in:
Alex Lam S.L
2017-03-16 13:22:26 +08:00
committed by GitHub
parent a80b228d8b
commit 5ae04b3545
5 changed files with 52 additions and 3 deletions

View File

@@ -78,6 +78,7 @@ describe("minify", function() {
});
it("Should process inline source map", function() {
var code = Uglify.minify("./test/input/issue-520/input.js", {
compress: { toplevel: true },
inSourceMap: "inline",
sourceMapInline: true
}).code + "\n";