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

Commit

Permalink
fixup! remove refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Dec 13, 2022
1 parent d062048 commit 812479f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions browser/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,11 @@ func (m *RootModule) NewModuleInstance(vu k6modules.VU) k6modules.Instance {
k6common.Throw(vu.Runtime(), errors.New(msg))
}
return &ModuleInstance{
mod: m.NewJSModule(vu),
}
}

// NewJSModule returns a new JSModule instance.
func (*RootModule) NewJSModule(vu k6modules.VU) *JSModule {
return &JSModule{
Chromium: mapBrowserToGoja(vu),
Devices: common.GetDevices(),
Version: version,
mod: &JSModule{
Chromium: mapBrowserToGoja(vu),
Devices: common.GetDevices(),
Version: version,
},
}
}

Expand Down

0 comments on commit 812479f

Please sign in to comment.