aboutsummaryrefslogtreecommitdiff
path: root/src/options.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-04-27 08:37:37 -0700
committerGravatar GitHub <noreply@github.com> 2023-04-27 08:37:37 -0700
commit52c50e37371ed0bf208de2b2e8dbf7c2cc1bd97c (patch)
treed051da306f53f942892848d7fe347afde1e9cef0 /src/options.zig
parent3ee22065f019d4f37dafb4e11607478fa9bcede5 (diff)
downloadbun-52c50e37371ed0bf208de2b2e8dbf7c2cc1bd97c.tar.gz
bun-52c50e37371ed0bf208de2b2e8dbf7c2cc1bd97c.tar.zst
bun-52c50e37371ed0bf208de2b2e8dbf7c2cc1bd97c.zip
address unicode issue (#2763)
* Fix an oopsie * Another oopsie * use inline for * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/options.zig')
-rw-r--r--src/options.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/options.zig b/src/options.zig
index a1aeba88e..0ad92a5e1 100644
--- a/src/options.zig
+++ b/src/options.zig
@@ -2120,6 +2120,7 @@ pub const OutputFile = struct {
pub fn toJS(
this: *OutputFile,
+ owned_pathname: []const u8,
globalObject: *JSC.JSGlobalObject,
) bun.JSC.JSValue {
return switch (this.value) {
@@ -2127,7 +2128,7 @@ pub const OutputFile = struct {
.noop => JSC.JSValue.undefined,
.move => this.value.move.toJS(globalObject, this.loader),
.copy => this.value.copy.toJS(globalObject, this.loader),
- .saved => SavedFile.toJS(globalObject, this.input.text, this.size),
+ .saved => SavedFile.toJS(globalObject, owned_pathname, this.size),
.buffer => |buffer| brk: {
var blob = bun.default_allocator.create(JSC.WebCore.Blob) catch unreachable;
blob.* = JSC.WebCore.Blob.init(@constCast(buffer.bytes), buffer.allocator, globalObject);