aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-10-12 03:42:57 +0800
committerGitHub <noreply@github.com>2019-10-12 03:42:57 +0800
commiteba3a37bb510320ba95f27021c35c9fb83375b08 (patch)
tree09de4974aa5d5c1abcb0a57a29b3958c55182224 /lib/ast.js
parent6d57ca1a59449cd11de296d091a35551ce9cbee7 (diff)
downloadtracifyjs-eba3a37bb510320ba95f27021c35c9fb83375b08.tar.gz
tracifyjs-eba3a37bb510320ba95f27021c35c9fb83375b08.zip
fix boolean context detection (#3466)
fixes #3465
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ast.js b/lib/ast.js
index 5e1fbbb9..b1704915 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -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 {