diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-10-12 03:42:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-12 03:42:57 +0800 |
commit | eba3a37bb510320ba95f27021c35c9fb83375b08 (patch) | |
tree | 09de4974aa5d5c1abcb0a57a29b3958c55182224 /lib/ast.js | |
parent | 6d57ca1a59449cd11de296d091a35551ce9cbee7 (diff) | |
download | tracifyjs-eba3a37bb510320ba95f27021c35c9fb83375b08.tar.gz tracifyjs-eba3a37bb510320ba95f27021c35c9fb83375b08.zip |
fix boolean context detection (#3466)
fixes #3465
Diffstat (limited to 'lib/ast.js')
-rw-r--r-- | lib/ast.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -985,6 +985,7 @@ TreeWalker.prototype = { fn = this.parent(++i); if (!fn) return false; } while (!(fn instanceof AST_Lambda)); + if (fn.name) return false; self = this.parent(++i); if (!self || self.TYPE != "Call" || self.expression !== fn) return false; } else { |