Skip to content

Commit

Permalink
Async JSHandle.jsonValue
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Jun 4, 2024
1 parent 5ddde29 commit 30f9300
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion browser/js_handle_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ func mapJSHandle(vu moduleVU, jsh common.JSHandleAPI) mapping {
return dst, nil
})
},
"jsonValue": jsh.JSONValue,
"jsonValue": func() *goja.Promise {
return k6ext.Promise(vu.Context(), func() (any, error) {
return jsh.JSONValue() //nolint:wrapcheck
})
},
}
}

0 comments on commit 30f9300

Please sign in to comment.