mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Even more child process tests passing (#18052)
This commit is contained in:
@@ -635,9 +635,11 @@ pub const String = extern struct {
|
||||
this: *String,
|
||||
) JSC.JSValue;
|
||||
|
||||
pub fn toJSByParseJSON(self: *String, globalObject: *JSC.JSGlobalObject) JSC.JSValue {
|
||||
pub fn toJSByParseJSON(self: *String, globalObject: *JSC.JSGlobalObject) bun.JSError!JSC.JSValue {
|
||||
JSC.markBinding(@src());
|
||||
return BunString__toJSON(globalObject, self);
|
||||
const result = BunString__toJSON(globalObject, self);
|
||||
if (result == .zero) return error.JSError;
|
||||
return result;
|
||||
}
|
||||
|
||||
pub fn encodeInto(self: String, out: []u8, comptime enc: JSC.Node.Encoding) !usize {
|
||||
|
||||
Reference in New Issue
Block a user