diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-02-01 02:36:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 10:36:45 +0800 |
commit | d4685640a00a0c998041c96ec197e613bd67b7b3 (patch) | |
tree | 53ed8185a109028e4270993fc1d6962fcc22495b /lib/utils.js | |
parent | ac7b5c07d778d3b70bf39c4c0014e9411d780268 (diff) | |
download | tracifyjs-d4685640a00a0c998041c96ec197e613bd67b7b3.tar.gz tracifyjs-d4685640a00a0c998041c96ec197e613bd67b7b3.zip |
support template literals (#4601)
Diffstat (limited to 'lib/utils.js')
-rw-r--r-- | lib/utils.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils.js b/lib/utils.js index c3b67a6f..81ddfa63 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -255,6 +255,8 @@ function first_in_statement(stack, arrow) { if (p.expressions[0] === node) continue; } else if (p instanceof AST_Statement) { return p.body === node; + } else if (p instanceof AST_Template) { + if (p.tag === node) continue; } else if (p instanceof AST_UnaryPostfix) { if (p.expression === node) continue; } |