From a84d07e31298fc1f8825b0047629634920667707 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Tue, 9 Oct 2012 18:35:53 +0300 Subject: add AST_Infinity node --- lib/output.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/output.js') diff --git a/lib/output.js b/lib/output.js index 571dd106..25b601ef 100644 --- a/lib/output.js +++ b/lib/output.js @@ -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"); -- cgit v1.2.3