Make undefined->null safer, and apply the same trick to BrowserContext

This commit is contained in:
Karl Seguin
2025-04-29 11:28:43 +08:00
parent 9044925f32
commit 2e01fa738a
3 changed files with 14 additions and 20 deletions

View File

@@ -105,7 +105,7 @@ const TestContext = struct {
}
_ = try c.createBrowserContext();
var bc = c.browser_context.?;
var bc = &c.browser_context.?;
if (opts.id) |id| {
bc.id = id;