Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit eea70f6

Browse files
committed
Use mergeWith parseBrowserContextOptions
1 parent f1f03ee commit eea70f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

browser/browser_mapping.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,8 @@ func initBrowserContext(bctx *common.BrowserContext, testRunID string) error {
110110

111111
// parseBrowserContextOptions parses the [common.BrowserContext] options from a Sobek value.
112112
func parseBrowserContextOptions(rt *sobek.Runtime, opts sobek.Value) (*common.BrowserContextOptions, error) {
113-
if !sobekValueExists(opts) {
114-
return nil, nil //nolint:nilnil
115-
}
116113
b := common.NewBrowserContextOptions()
117-
if err := rt.ExportTo(opts, &b); err != nil {
114+
if err := mergeWith(rt, b, opts); err != nil {
118115
return nil, fmt.Errorf("parsing browser context options: %w", err)
119116
}
120117
return b, nil

0 commit comments

Comments
 (0)