diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-19 17:24:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 01:24:29 +0800 |
commit | 882968c68c79a0f285d59f4b7ea50a62dc9ba1b6 (patch) | |
tree | 05f9d2b3b8891fedb4c9a45633e26ba3385aace7 /lib/ast.js | |
parent | acc2d7d8455ed7302a78948b3c8678990dc1765a (diff) | |
download | tracifyjs-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.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: { |