mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
refactor: remove BunString.fromJSRef (#17367)
This commit is contained in:
@@ -1019,7 +1019,8 @@ pub const PostgresRequest = struct {
|
||||
},
|
||||
|
||||
else => {
|
||||
const str = try String.fromJSRef(value, globalObject);
|
||||
const str = try String.fromJS2(value, globalObject);
|
||||
if (str.tag == .Dead) return error.OutOfMemory;
|
||||
defer str.deref();
|
||||
const slice = str.toUTF8WithoutRef(bun.default_allocator);
|
||||
defer slice.deinit();
|
||||
|
||||
Reference in New Issue
Block a user