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:
Julian Descottes 2022-07-05 07:11:41 +00:00
Родитель 1e71371aad
Коммит 26cb8439ba
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -126,10 +126,9 @@ class ScriptModule extends Module {
* realm or a browsing context.
*
* @param {Object=} options
* @param {boolean=} awaitPromise
* @param {boolean} awaitPromise
* Determines if the command should wait for the return value of the
* expression to resolve, if this return value is a Promise. Defaults to
* true.
* expression to resolve, if this return value is a Promise.
* @param {string} expression
* The expression to evaluate.
* @param {OwnershipModel=} resultOwnership [unsupported]
@ -147,7 +146,7 @@ class ScriptModule extends Module {
*/
async evaluate(options = {}) {
const {
awaitPromise = true,
awaitPromise,
expression: source,
resultOwnership = OwnershipModel.None,
target = {},