refactor compute_char_frequency() (#2152)

- minimise maintenance when updating AST
- maximise code sharing between `master` & `harmony`
This commit is contained in:
Alex Lam S.L
2017-06-23 20:05:31 +08:00
committed by GitHub
parent dc6bcaa18e
commit 94e5e00c03
2 changed files with 46 additions and 78 deletions

View File

@@ -501,6 +501,7 @@ function OutputStream(options) {
use_asm = prev_use_asm;
}
});
AST_Node.DEFMETHOD("_print", AST_Node.prototype.print);
AST_Node.DEFMETHOD("print_to_string", function(options){
var s = OutputStream(options);