Skip to content

Commit

Permalink
Map the browser import path to the sync API
Browse files Browse the repository at this point in the history
The k6 browser API is now Async. To continue to work with the sync API,
k6-core needs to be updated to browser.NewSync. This method maps the
browser's core API to sync methods.
  • Loading branch information
inancgumus committed Jun 7, 2024
1 parent a4715b3 commit 73aaa79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jsmodules.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func getInternalJSModules() map[string]interface{} {
"k6/experimental/timers is now part of the k6 core, please change your imports to use k6/timers instead."+
" The k6/experimental/timers will be removed in k6 v0.52.0"),
"k6/experimental/tracing": tracing.New(),
"k6/experimental/browser": browser.New(),
"k6/experimental/browser": browser.NewSync(),
"k6/experimental/fs": fs.New(),
"k6/net/grpc": grpc.New(),
"k6/html": html.New(),
Expand Down

0 comments on commit 73aaa79

Please sign in to comment.