Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, Execute Script and Execute Async Script were updated to invoke the "execute a function body" algorithm by "promise calling" it. [1] This did not have the intended effect because "execute a function body" continued to return WebDriver "success" and "error" values, Additionally, fulfillment of the promise returned by the user-provided script did not influence completion of the operation. Refactor "execute a function body" to return an ECMAScript completion value so that it may be invoked via "promise call." Update both Execute Script and Execute Async Script to recognize a synchronously-returned Promise value in accordance with the discussion which motivated the original change [2]. [1] 7307dd6 [2] #381
- Loading branch information
1 parent
af2e76a
commit 6166c07
Showing
1 changed file
with
60 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters