aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output.js')
-rw-r--r--lib/output.js28
1 files changed, 1 insertions, 27 deletions
diff --git a/lib/output.js b/lib/output.js
index d5c7304a..d0adbddf 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -586,21 +586,12 @@ function OutputStream(options) {
return first_in_statement(output);
});
- PARENS([ AST_Unary, AST_Undefined ], function(output){
+ PARENS(AST_Unary, function(output){
var p = output.parent();
return p instanceof AST_PropAccess && p.expression === this
|| p instanceof AST_Call && p.expression === this;
});
- PARENS([ AST_Infinity, AST_NaN ], function(output){
- var p = output.parent();
- return p instanceof AST_PropAccess && p.expression === this
- || p instanceof AST_Call && p.expression === this
- || p instanceof AST_Unary && p.operator != "+" && p.operator != "-"
- || p instanceof AST_Binary && p.right === this
- && (p.operator == "/" || p.operator == "%");
- });
-
PARENS(AST_Seq, function(output){
var p = output.parent();
return p instanceof AST_Call // (foo, bar)() or foo(1, (2, 3), 4)
@@ -1258,24 +1249,7 @@ function OutputStream(options) {
var def = self.definition();
output.print_name(def ? def.mangled_name || def.name : self.name);
});
- DEFPRINT(AST_Undefined, function(self, output){
- output.print("void 0");
- });
DEFPRINT(AST_Hole, noop);
- DEFPRINT(AST_Infinity, function(self, output){
- output.print("1");
- output.space();
- output.print("/");
- output.space();
- output.print("0");
- });
- DEFPRINT(AST_NaN, function(self, output){
- output.print("0");
- output.space();
- output.print("/");
- output.space();
- output.print("0");
- });
DEFPRINT(AST_This, function(self, output){
output.print("this");
});