Even more child process tests passing (#18052)

This commit is contained in:
pfg
2025-03-11 22:52:12 -07:00
committed by GitHub
parent 5c7df736bf
commit fdd181d68d
52 changed files with 2650 additions and 281 deletions

View File

@@ -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 {