aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bun.js/bindings/bindings.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/bindings.zig b/src/bun.js/bindings/bindings.zig
index f041d32f7..58e56df5e 100644
--- a/src/bun.js/bindings/bindings.zig
+++ b/src/bun.js/bindings/bindings.zig
@@ -480,7 +480,7 @@ pub const ZigString = extern struct {
if (!this.isUTF8() and !strings.isAllASCII(untagged(this.ptr)[0..this.len])) {
var buffer = this.toOwnedSlice(allocator) catch unreachable;
return Slice{
- .allocator = allocator,
+ .allocator = NullableAllocator.init(allocator),
.ptr = buffer.ptr,
.len = @truncate(u32, buffer.len),
};