aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-10-15 19:44:07 +0800
committerGitHub <noreply@github.com>2019-10-15 19:44:07 +0800
commit8af2f5fbcf91279db86f71e9a889d69b262370c5 (patch)
tree2b31927556b363debf733945c0536981ba1c0db1 /lib/output.js
parent86a801632337aa45179f1d4ba4e46c8ede603c46 (diff)
downloadtracifyjs-8af2f5fbcf91279db86f71e9a889d69b262370c5.tar.gz
tracifyjs-8af2f5fbcf91279db86f71e9a889d69b262370c5.zip
fix corner case in `rename` (#3481)
fixes #3480
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 af0cdc4b..827fa43a 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -1355,7 +1355,7 @@ function OutputStream(options) {
});
DEFPRINT(AST_Symbol, function(self, output) {
var def = self.definition();
- output.print_name(def ? def.mangled_name || def.name : self.name);
+ output.print_name(def && def.mangled_name || self.name);
});
DEFPRINT(AST_Hole, noop);
DEFPRINT(AST_This, function(self, output) {