diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-08-23 21:39:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 04:39:38 +0800 |
commit | 7dc61cdc895d055edfa9b1d82d17688ad3a57f1c (patch) | |
tree | 349b9016f337c058f28fd9ecb27b954a80758123 /lib/propmangle.js | |
parent | af1b2f30c9904ba69aee5a6219215f1d0e64ad2b (diff) | |
download | tracifyjs-7dc61cdc895d055edfa9b1d82d17688ad3a57f1c.tar.gz tracifyjs-7dc61cdc895d055edfa9b1d82d17688ad3a57f1c.zip |
tidy up various interfaces (#4066)
Diffstat (limited to 'lib/propmangle.js')
-rw-r--r-- | lib/propmangle.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/propmangle.js b/lib/propmangle.js index 04194393..e47497de 100644 --- a/lib/propmangle.js +++ b/lib/propmangle.js @@ -110,7 +110,6 @@ function mangle_properties(ast, options) { cache: null, debug: false, keep_quoted: false, - only_cache: false, regex: null, reserved: null, }, true); @@ -213,7 +212,6 @@ function mangle_properties(ast, options) { function can_mangle(name) { if (unmangleable[name]) return false; - if (options.only_cache) return cache.has(name); if (/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(name)) return false; return true; } |