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:
@@ -55,7 +55,7 @@ const OutputColorFormat = enum {
|
||||
};
|
||||
|
||||
fn colorIntFromJS(globalThis: *JSC.JSGlobalObject, input: JSC.JSValue, comptime property: []const u8) bun.JSError!i32 {
|
||||
if (input == .zero or input == .undefined or !input.isNumber()) {
|
||||
if (input == .zero or input.isUndefined() or !input.isNumber()) {
|
||||
return globalThis.throwInvalidArgumentType("color", property, "integer");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user