mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1321228 - Part 1: Remove legacy generator from testing/marionette/. r=ato
This commit is contained in:
parent
25ecae81fc
commit
fe45e321da
@ -882,7 +882,7 @@ GeckoDriver.prototype.executeScript = function*(cmd, resp) {
|
||||
* @throws JavaScriptError
|
||||
* If an Error was thrown whilst evaluating the script.
|
||||
*/
|
||||
GeckoDriver.prototype.executeAsyncScript = function (cmd, resp) {
|
||||
GeckoDriver.prototype.executeAsyncScript = function* (cmd, resp) {
|
||||
let {script, args, scriptTimeout} = cmd.parameters;
|
||||
scriptTimeout = scriptTimeout || this.scriptTimeout;
|
||||
|
||||
@ -932,7 +932,7 @@ GeckoDriver.prototype.execute_ = function (script, args, timeout, opts = {}) {
|
||||
*
|
||||
* Scripts are expected to call the {@code finish} global when done.
|
||||
*/
|
||||
GeckoDriver.prototype.executeJSScript = function (cmd, resp) {
|
||||
GeckoDriver.prototype.executeJSScript = function* (cmd, resp) {
|
||||
let {script, args, scriptTimeout} = cmd.parameters;
|
||||
scriptTimeout = scriptTimeout || this.scriptTimeout;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user