more progress on the compressor (WIP)

This commit is contained in:
Mihai Bazon
2012-09-10 15:54:17 +03:00
parent 16b12c6287
commit a41e6cfabb
4 changed files with 134 additions and 20 deletions

View File

@@ -313,6 +313,9 @@ function OutputStream(options) {
};
AST_Node.DEFMETHOD("print_to_string", function(options){
options = defaults(options, {
beautify: false
});
var s = OutputStream(options);
this.print(s);
return s.get();