diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-07-19 15:35:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 22:35:45 +0800 |
commit | 85968dee5453dfb3cc0cb5c67f363eccd58b08c6 (patch) | |
tree | c54fe62d6d20e10a55b0454e3616a608143dfde3 /lib | |
parent | a7e7865e6bb446d7bcb26fa96d57041c65001d01 (diff) | |
download | tracifyjs-85968dee5453dfb3cc0cb5c67f363eccd58b08c6.tar.gz tracifyjs-85968dee5453dfb3cc0cb5c67f363eccd58b08c6.zip |
fix corner case in `inline` (#5088)
fixes #5087
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 0de072ad..c5d75d42 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -9957,8 +9957,10 @@ merge(Compressor.prototype, { })); function process(ref, name) { + var def = name.definition(); + def.references.push(ref); var symbol = make_node(AST_SymbolVar, name, name); - name.definition().orig.push(symbol); + def.orig.push(symbol); append_var(decls, expressions, symbol); } } |