From 882968c68c79a0f285d59f4b7ea50a62dc9ba1b6 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 19 Dec 2020 17:24:29 +0000 Subject: fix corner case in `inline` (#4418) fixes #4417 --- lib/ast.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/ast.js') diff --git a/lib/ast.js b/lib/ast.js index e966cefa..f319a42d 100644 --- a/lib/ast.js +++ b/lib/ast.js @@ -578,6 +578,10 @@ var AST_Arrow = DEFNODE("Arrow", "inlined value", { }, }, AST_Lambda); +function is_async(node) { + return node instanceof AST_AsyncDefun || node instanceof AST_AsyncFunction; +} + var AST_AsyncFunction = DEFNODE("AsyncFunction", "inlined name", { $documentation: "An asynchronous function expression", $propdoc: { -- cgit v1.2.3