aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-12-19 17:24:29 +0000
committerGitHub <noreply@github.com>2020-12-20 01:24:29 +0800
commit882968c68c79a0f285d59f4b7ea50a62dc9ba1b6 (patch)
tree05f9d2b3b8891fedb4c9a45633e26ba3385aace7 /lib/ast.js
parentacc2d7d8455ed7302a78948b3c8678990dc1765a (diff)
downloadtracifyjs-882968c68c79a0f285d59f4b7ea50a62dc9ba1b6.tar.gz
tracifyjs-882968c68c79a0f285d59f4b7ea50a62dc9ba1b6.zip
fix corner case in `inline` (#4418)
fixes #4417
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js4
1 files changed, 4 insertions, 0 deletions
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: {