diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-09-30 14:03:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 21:03:28 +0800 |
commit | 090ee895e12ff7e985a972c448b7d29f63e12696 (patch) | |
tree | f315f2db141dcd4e3f0727f3a870981104e60596 /lib | |
parent | 1cd1a1e5eefc6e7c61ab7c6023fea06515535013 (diff) | |
download | tracifyjs-090ee895e12ff7e985a972c448b7d29f63e12696.tar.gz tracifyjs-090ee895e12ff7e985a972c448b7d29f63e12696.zip |
enhance `inline` (#4163)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 69394a3d..dfe444ad 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -6831,7 +6831,7 @@ merge(Compressor.prototype, { return arg; })).optimize(compressor); node = maintain_this_binding(compressor, compressor.parent(), compressor.self(), node); - if (replacing || best_of(compressor, self, node) === node) { + if (replacing || best_of_expression(node, self) === node) { refs.forEach(function(ref) { var def = ref.definition(); def.references.push(ref); |