zig: prefer .jsUndefined() over .undefined for JSValue (#20332)

This commit is contained in:
Meghan Denny
2025-06-12 12:18:46 -08:00
committed by GitHub
parent d6590c4bfa
commit dedd433cbf
84 changed files with 569 additions and 574 deletions

View File

@@ -1110,7 +1110,7 @@ pub const JSFrameworkRouter = struct {
return global.throwInvalidArguments("Missing options.root", .{});
defer root.deinit();
var style = try Style.fromJS(try opts.getOptional(global, "style", JSValue) orelse .undefined, global);
var style = try Style.fromJS(try opts.getOptional(global, "style", JSValue) orelse .jsUndefined(), global);
errdefer style.deinit();
const abs_root = try bun.default_allocator.dupe(u8, bun.strings.withoutTrailingSlash(