Bug 1159232: Avoid use of template string in GeckoDriver#sendAsync

Also avoids it in GeckoDriver#execute.

r=dburns
This commit is contained in:
Andreas Tolfsen 2015-04-28 14:34:55 +01:00
parent 3337bfb2a9
commit d27da8cbe8

View File

@ -216,7 +216,7 @@ GeckoDriver.prototype.switchToGlobalMessageManager = function() {
*/
GeckoDriver.prototype.sendAsync = function(name, msg, cmdId) {
let curRemoteFrame = this.curBrowser.frameManager.currentRemoteFrame;
name = `Marionette:${name}`;
name = "Marionette:" + name;
if (cmdId) {
msg.command_id = cmdId;
@ -888,7 +888,7 @@ GeckoDriver.prototype.execute = function(cmd, resp, directInject) {
};
if (!directInject) {
script = `let func = function() { ${script} }; func.apply(null, __marionetteParams);`;
script = "let func = function() { " + script + " }; func.apply(null, __marionetteParams);";
}
this.executeScriptInSandbox(
resp,