mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
windows: some random things (#8521)
* swaggin * fix(bun_shim_impl): support exe names that are shorter than four characters * hi * a
This commit is contained in:
@@ -1270,7 +1270,7 @@ pub const SliceWithUnderlyingString = struct {
|
||||
}
|
||||
|
||||
if (this.utf8.allocator.get()) |_| {
|
||||
if (bun.strings.toUTF16Alloc(bun.default_allocator, this.utf8.slice(), false) catch null) |utf16| {
|
||||
if (bun.strings.toUTF16Alloc(bun.default_allocator, this.utf8.slice(), false, false) catch null) |utf16| {
|
||||
this.utf8.deinit();
|
||||
this.utf8 = .{};
|
||||
return JSC.ZigString.toExternalU16(utf16.ptr, utf16.len, globalObject);
|
||||
|
||||
Reference in New Issue
Block a user