Bug 1321228 - Part 1: Remove legacy generator from testing/marionette/. r=ato

This commit is contained in:
Tooru Fujisawa 2016-12-15 16:54:46 +09:00
parent 25ecae81fc
commit fe45e321da

View File

@ -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;