diff options
author | 2021-12-15 16:52:38 -0800 | |
---|---|---|
committer | 2021-12-15 16:52:38 -0800 | |
commit | 0a916543b3683a2d57cff22afdb6e11665424e79 (patch) | |
tree | 39e9e772c783b12d659a2eee81746a7e927af555 | |
parent | 2c53ff298071400cd165b94a6d297ea116d27455 (diff) | |
download | bun-0a916543b3683a2d57cff22afdb6e11665424e79.tar.gz bun-0a916543b3683a2d57cff22afdb6e11665424e79.tar.zst bun-0a916543b3683a2d57cff22afdb6e11665424e79.zip |
[JS Parser] Fix bug with template literals that create new scopes in the tag and the template literal value
-rw-r--r-- | src/js_parser/js_parser.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js_parser/js_parser.zig b/src/js_parser/js_parser.zig index 38ce0f270..e785f2ebc 100644 --- a/src/js_parser/js_parser.zig +++ b/src/js_parser/js_parser.zig @@ -11327,10 +11327,6 @@ pub fn NewParser( }, .e_template => |e_| { - for (e_.parts) |*part| { - part.value = p.visitExpr(part.value); - } - if (e_.tag) |tag| { e_.tag = p.visitExpr(tag); @@ -11360,6 +11356,10 @@ pub fn NewParser( } } } + + for (e_.parts) |*part| { + part.value = p.visitExpr(part.value); + } }, .inline_identifier => |id| { |