aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output.js')
-rw-r--r--lib/output.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/output.js b/lib/output.js
index 7fe61af3..5a8f603c 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -549,12 +549,6 @@ function OutputStream(options) {
return true;
});
- PARENS(AST_NaN, function(output){
- var p = output.parent();
- if (p instanceof AST_PropAccess && p.expression === this)
- return true;
- });
-
PARENS([ AST_Assign, AST_Conditional ], function (output){
var p = output.parent();
// !(a = false) → true
@@ -1109,10 +1103,10 @@ function OutputStream(options) {
});
DEFPRINT(AST_Hole, noop);
DEFPRINT(AST_Infinity, function(self, output){
- output.print("1/0");
+ output.print("Infinity");
});
DEFPRINT(AST_NaN, function(self, output){
- output.print("0/0");
+ output.print("NaN");
});
DEFPRINT(AST_This, function(self, output){
output.print("this");