diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-10-15 19:44:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-15 19:44:07 +0800 |
commit | 8af2f5fbcf91279db86f71e9a889d69b262370c5 (patch) | |
tree | 2b31927556b363debf733945c0536981ba1c0db1 /lib/mozilla-ast.js | |
parent | 86a801632337aa45179f1d4ba4e46c8ede603c46 (diff) | |
download | tracifyjs-8af2f5fbcf91279db86f71e9a889d69b262370c5.tar.gz tracifyjs-8af2f5fbcf91279db86f71e9a889d69b262370c5.zip |
fix corner case in `rename` (#3481)
fixes #3480
Diffstat (limited to 'lib/mozilla-ast.js')
-rw-r--r-- | lib/mozilla-ast.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mozilla-ast.js b/lib/mozilla-ast.js index dace808a..b6fb29bf 100644 --- a/lib/mozilla-ast.js +++ b/lib/mozilla-ast.js @@ -403,7 +403,7 @@ var def = M.definition(); return { type: "Identifier", - name: def ? def.mangled_name || def.name : M.name + name: def && def.mangled_name || M.name }; }); |