mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
zig: prefer .jsUndefined() over .undefined for JSValue (#20332)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user