add AST_Infinity node

This commit is contained in:
Mihai Bazon
2012-10-09 18:35:53 +03:00
parent 88beddfa91
commit a84d07e312
3 changed files with 10 additions and 2 deletions

View File

@@ -963,9 +963,10 @@ function OutputStream(options) {
output.print_name(def ? def.mangled_name || def.name : self.name);
});
DEFPRINT(AST_Undefined, function(self, output){
// XXX: should add more options for this
output.print("void 0");
//output.print("[][0]");
});
DEFPRINT(AST_Infinity, function(self, output){
output.print("1/0");
});
DEFPRINT(AST_NaN, function(self, output){
output.print("0/0");