Bug 863185 - Define variable in order to use it, r=dburns, a=test-only
authorJonathan Griffin <jgriffin@mozilla.com>
Thu, 18 Apr 2013 03:04:13 -0700
changeset 119120 bca1e10dc7158f9cadb13debd754b019f799e23d
parent 119119 efe8da9c584a54c6ef520f285dd85296324ffdc7
child 119121 c3b13b17751e42ea168edac4cfcef52623c1e136
push id683
push userjgriffin@mozilla.com
push dateThu, 18 Apr 2013 15:52:11 +0000
reviewersdburns, test-only
bugs863185
milestone18.0
Bug 863185 - Define variable in order to use it, r=dburns, a=test-only
testing/marionette/marionette-actors.js
--- a/testing/marionette/marionette-actors.js
+++ b/testing/marionette/marionette-actors.js
@@ -257,17 +257,17 @@ MarionetteDriverActor.prototype = {
               error = new FrameSendFailureError(this.currentRemoteFrame);
               break;
             case Components.results.NS_ERROR_NOT_INITIALIZED:
               error = new FrameSendNotInitializedError(this.currentRemoteFrame);
               break;
             default:
               break;
           }
-          code = error.hasOwnProperty('code') ? e.code : 500;
+          let code = error.hasOwnProperty('code') ? e.code : 500;
           this.sendError(error.toString(), code, error.stack, commandId);
         }
       }
     }
     else {
       this.messageManager.broadcastAsyncMessage(
         "Marionette:" + name + this.curBrowser.curFrameId, values);
     }