deprecate low level API (#1877)

fixes #1872
This commit is contained in:
Alex Lam S.L
2017-05-08 03:24:42 +08:00
committed by GitHub
parent e54748365c
commit 4f8ca4626e
23 changed files with 51 additions and 59 deletions

View File

@@ -183,13 +183,4 @@ describe("minify", function() {
});
});
});
describe("Compressor", function() {
it("should be backward compatible with ast.transform(compressor)", function() {
var ast = Uglify.parse("function f(a){for(var i=0;i<a;i++)console.log(i)}");
ast.figure_out_scope();
ast = ast.transform(Uglify.Compressor());
assert.strictEqual(ast.print_to_string(), "function f(a){for(var i=0;i<a;i++)console.log(i)}");
});
})
});