mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Use better function names for bun.String (#20999)
This commit is contained in:
@@ -491,12 +491,12 @@ pub const Mapping = struct {
|
||||
const name = source_map.external_source_names[@intCast(lookup.mapping.source_index)];
|
||||
|
||||
if (source_map.is_standalone_module_graph) {
|
||||
return bun.String.createUTF8(name);
|
||||
return bun.String.cloneUTF8(name);
|
||||
}
|
||||
|
||||
if (std.fs.path.isAbsolute(base_filename)) {
|
||||
const dir = bun.path.dirname(base_filename, .auto);
|
||||
return bun.String.createUTF8(bun.path.joinAbs(dir, .auto, name));
|
||||
return bun.String.cloneUTF8(bun.path.joinAbs(dir, .auto, name));
|
||||
}
|
||||
|
||||
return bun.String.init(name);
|
||||
|
||||
Reference in New Issue
Block a user