aboutsummaryrefslogtreecommitdiff
path: root/src/js_ast.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r--src/js_ast.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig
index c7197a3b7..7318919ea 100644
--- a/src/js_ast.zig
+++ b/src/js_ast.zig
@@ -8044,7 +8044,7 @@ pub const Macro = struct {
return Expr.init(E.Number, E.Number{ .value = value.asNumber() }, this.caller.loc);
},
.String => {
- var sliced = value.toSlice(this.allocator).cloneIfNeeded(this.allocator) catch unreachable;
+ var sliced = value.toSlice(this.global, this.allocator).cloneIfNeeded(this.allocator) catch unreachable;
return Expr.init(E.String, E.String.init(sliced.slice()), this.caller.loc);
},
.Promise => {