Merge branch 'master' into harmony

This commit is contained in:
Richard van Velzen
2016-05-04 20:13:35 +02:00
13 changed files with 263 additions and 49 deletions

View File

@@ -414,6 +414,7 @@ function OutputStream(options) {
AST_Node.DEFMETHOD("print_to_string", function(options){
var s = OutputStream(options);
if (!options) s._readonly = true;
this.print(s);
return s.get();
});
@@ -421,6 +422,7 @@ function OutputStream(options) {
/* -----[ comments ]----- */
AST_Node.DEFMETHOD("add_comments", function(output){
if (output._readonly) return;
var c = output.option("comments"), self = this;
var start = self.start;
if (start && !start._comments_dumped) {