forked from mirrors/gecko-dev
Bug 1777936 - [bidi] script.evaluate awaitPromise should be mandatory r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D150920
This commit is contained in:
parent
1e71371aad
commit
26cb8439ba
1 changed files with 3 additions and 4 deletions
|
|
@ -126,10 +126,9 @@ class ScriptModule extends Module {
|
||||||
* realm or a browsing context.
|
* realm or a browsing context.
|
||||||
*
|
*
|
||||||
* @param {Object=} options
|
* @param {Object=} options
|
||||||
* @param {boolean=} awaitPromise
|
* @param {boolean} awaitPromise
|
||||||
* Determines if the command should wait for the return value of the
|
* Determines if the command should wait for the return value of the
|
||||||
* expression to resolve, if this return value is a Promise. Defaults to
|
* expression to resolve, if this return value is a Promise.
|
||||||
* true.
|
|
||||||
* @param {string} expression
|
* @param {string} expression
|
||||||
* The expression to evaluate.
|
* The expression to evaluate.
|
||||||
* @param {OwnershipModel=} resultOwnership [unsupported]
|
* @param {OwnershipModel=} resultOwnership [unsupported]
|
||||||
|
|
@ -147,7 +146,7 @@ class ScriptModule extends Module {
|
||||||
*/
|
*/
|
||||||
async evaluate(options = {}) {
|
async evaluate(options = {}) {
|
||||||
const {
|
const {
|
||||||
awaitPromise = true,
|
awaitPromise,
|
||||||
expression: source,
|
expression: source,
|
||||||
resultOwnership = OwnershipModel.None,
|
resultOwnership = OwnershipModel.None,
|
||||||
target = {},
|
target = {},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue