aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-09-12 13:00:13 +0300
committerMihai Bazon <mihai@bazon.net>2012-09-12 13:00:13 +0300
commit2b4093ba8342b79bac3f9f89428817231728bb01 (patch)
tree83584a611bf43aa7014905b5ef1f69b803ce5454 /lib/output.js
parent9a629abe00101d56ccc1a9bd01a90b9f7f19421f (diff)
downloadtracifyjs-2b4093ba8342b79bac3f9f89428817231728bb01.tar.gz
tracifyjs-2b4093ba8342b79bac3f9f89428817231728bb01.zip
fixed run-tests and an issue about reversing the condition in AST_If
Diffstat (limited to 'lib/output.js')
-rw-r--r--lib/output.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js
index 25718816..f7cb47c6 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -885,7 +885,7 @@ function OutputStream(options) {
});
DEFPRINT(AST_Symbol, function(self, output){
var def = self.definition();
- output.print_name(def.mangled_name || def.name);
+ output.print_name(def ? def.mangled_name || def.name : self.name);
});
DEFPRINT(AST_This, function(self, output){
output.print("this");