diff options
author | 2023-05-01 12:04:34 -0700 | |
---|---|---|
committer | 2023-05-01 12:04:34 -0700 | |
commit | 07048661f3537956b7b882c6efcf7571b11c1fab (patch) | |
tree | 3248f3fe407c5119f7c740b23764d6add9eed25a /src/bun.js | |
parent | c2a223802b5a20a1f68c10d1f66797ba620e470c (diff) | |
download | bun-dylan/source-map-names-property.tar.gz bun-dylan/source-map-names-property.tar.zst bun-dylan/source-map-names-property.zip |
include `first_name_offset` in source map bufferdylan/source-map-names-property
Diffstat (limited to 'src/bun.js')
-rw-r--r-- | src/bun.js/javascript.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig index 06f833e3b..0e22367ca 100644 --- a/src/bun.js/javascript.zig +++ b/src/bun.js/javascript.zig @@ -193,7 +193,7 @@ pub const SavedSourceMap = struct { pub const SourceMapHandler = js_printer.SourceMapHandler.For(SavedSourceMap, onSourceMapChunk); - pub fn putMappings(this: *SavedSourceMap, source: logger.Source, mappings: MutableString) !void { + pub fn putMappings(this: *SavedSourceMap, source: logger.Source, mappings: SourceMap.MappingsBuffer) !void { var entry = try this.map.getOrPut(std.hash.Wyhash.hash(0, source.path.text)); if (entry.found_existing) { var value = Value.from(entry.value_ptr.*); @@ -207,7 +207,7 @@ pub const SavedSourceMap = struct { } } - entry.value_ptr.* = Value.init(bun.cast(*SavedMappings, mappings.list.items.ptr)).ptr(); + entry.value_ptr.* = Value.init(bun.cast(*SavedMappings, mappings.data.list.items.ptr)).ptr(); } pub fn get(this: *SavedSourceMap, path: string) ?MappingList { |