aboutsummaryrefslogtreecommitdiff
path: root/src/sourcemap/sourcemap.zig
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-05-18 19:39:31 -0700
committerGravatar GitHub <noreply@github.com> 2023-05-18 19:39:31 -0700
commitc3233f1b21ae145e2ab32a7aa4d77c061d5a0006 (patch)
tree0eeb499ae12b99ef0909d010f10bec770da35cd7 /src/sourcemap/sourcemap.zig
parenta3e53b025e36ff01a2225df42dcc9e4089767fbc (diff)
downloadbun-c3233f1b21ae145e2ab32a7aa4d77c061d5a0006.tar.gz
bun-c3233f1b21ae145e2ab32a7aa4d77c061d5a0006.tar.zst
bun-c3233f1b21ae145e2ab32a7aa4d77c061d5a0006.zip
set `node_allocator` for sourcemap joiner (#2953)
Diffstat (limited to 'src/sourcemap/sourcemap.zig')
-rw-r--r--src/sourcemap/sourcemap.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sourcemap/sourcemap.zig b/src/sourcemap/sourcemap.zig
index 5140d232e..f1bbcc4c1 100644
--- a/src/sourcemap/sourcemap.zig
+++ b/src/sourcemap/sourcemap.zig
@@ -602,7 +602,7 @@ pub fn appendSourceMapChunk(j: *Joiner, allocator: std.mem.Allocator, prev_end_s
var source_map = source_map_;
if (strings.indexOfNotChar(source_map, ';')) |semicolons| {
- j.append(source_map[0..semicolons], 0, null);
+ j.push(source_map[0..semicolons]);
source_map = source_map[semicolons..];
prev_end_state.generated_column = 0;
start_state.generated_column = 0;