aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-05-30 11:22:40 +0100
committerGitHub <noreply@github.com>2020-05-30 18:22:40 +0800
commit0eb4577a82437a82bd88bfeef4ecc761cc66c861 (patch)
tree0ff9ee713559840b1341f54144ecf8d978166a5c /lib/compress.js
parent43498769f09e682af27999e138ab2d42cea5ef6e (diff)
downloadtracifyjs-0eb4577a82437a82bd88bfeef4ecc761cc66c861.tar.gz
tracifyjs-0eb4577a82437a82bd88bfeef4ecc761cc66c861.zip
fix corner case in `evaluate` (#3938)
fixes #3937
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 443a6491..07916323 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -3493,7 +3493,7 @@ merge(Compressor.prototype, {
var fixed = this.fixed_value();
if (!fixed) return this;
var value;
- if (member(fixed, cached)) {
+ if (HOP(fixed, "_eval")) {
value = fixed._eval();
} else {
this._eval = return_this;