mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
Make undefined->null safer, and apply the same trick to BrowserContext
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user