diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-14 02:10:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-14 02:10:34 +0800 |
commit | 3ca902258c24209699f0b5bd5b9654252e492272 (patch) | |
tree | da7dbf1bc1e3bd70e463da43d0f7ebc06a36b2db /lib/scope.js | |
parent | fd0951231cce6aa2710bdb4f0ff8a963596f842c (diff) | |
download | tracifyjs-3ca902258c24209699f0b5bd5b9654252e492272.tar.gz tracifyjs-3ca902258c24209699f0b5bd5b9654252e492272.zip |
fix bugs with getter/setter (#1926)
- `reduce_vars`
- `side_effects`
- property access for object
- `AST_SymbolAccessor` as key names
enhance `test/ufuzz.js`
- add object getter & setter
- property assignment to setter
- avoid infinite recursion in setter
- fix & adjust assignment operators
- 50% `=`
- 25% `+=`
- 2.5% each for the rest
- avoid "Invalid array length"
- fix `console.log()`
- bypass getter
- curb recursive reference
- deprecate `-E`, always report runtime errors
Diffstat (limited to 'lib/scope.js')
-rw-r--r-- | lib/scope.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/scope.js b/lib/scope.js index ea08d775..14ffb46f 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -360,11 +360,6 @@ AST_Symbol.DEFMETHOD("unmangleable", function(options){ return this.definition().unmangleable(options); }); -// property accessors are not mangleable -AST_SymbolAccessor.DEFMETHOD("unmangleable", function(){ - return true; -}); - // labels are always mangleable AST_Label.DEFMETHOD("unmangleable", function(){ return false; |