From eba3a37bb510320ba95f27021c35c9fb83375b08 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 12 Oct 2019 03:42:57 +0800 Subject: fix boolean context detection (#3466) fixes #3465 --- lib/ast.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 { -- cgit v1.2.3