mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
zig: prefer .jsUndefined() over .undefined for JSValue (#20332)
This commit is contained in:
@@ -198,7 +198,7 @@ pub fn Maybe(comptime ReturnTypeT: type, comptime ErrorTypeT: type) type {
|
||||
.result => |r| switch (ReturnType) {
|
||||
JSC.JSValue => r,
|
||||
|
||||
void => .undefined,
|
||||
void => .jsUndefined(),
|
||||
bool => JSC.JSValue.jsBoolean(r),
|
||||
|
||||
JSC.ArrayBuffer => r.toJS(globalObject, null),
|
||||
|
||||
Reference in New Issue
Block a user