Bug 984929 - Fix EXPORTED_SYMBOLS is not an array in DevToolsExtensions.jsm on b2g r=erikvold a=lsblakk
authorAlexandre Poirot <poirot.alex@gmail.com>
Sat, 05 Apr 2014 13:23:15 -0700
changeset 192586 21c93b74c696a46ad9b2c70b41893e3666010bd8
parent 192585 80c0a9634cffe8109f043e0b2c340cd9cf4438c2
child 192587 eb96619d535194418f14c851dc3c804fb03249f5
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerserikvold, lsblakk
bugs984929
milestone30.0a2
Bug 984929 - Fix EXPORTED_SYMBOLS is not an array in DevToolsExtensions.jsm on b2g r=erikvold a=lsblakk
toolkit/devtools/DevToolsExtensions.jsm
--- a/toolkit/devtools/DevToolsExtensions.jsm
+++ b/toolkit/devtools/DevToolsExtensions.jsm
@@ -1,20 +1,20 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 "use strict";
 
-var EXPORTED_SYMBOLS = ["gDevToolsExtensions"];
+this.EXPORTED_SYMBOLS = ["gDevToolsExtensions"];
 
 Components.utils.import("resource://gre/modules/Services.jsm");
 
 let globalsCache = {};
 
-const gDevToolsExtensions = {
+this.gDevToolsExtensions = {
   addContentGlobal: function(options) {
     if (!options || !options.global || !options['inner-window-id']) {
       throw Error('Invalid arguments');
     }
     let cache = getGlobalCache(options['inner-window-id']);
     cache.push(options.global);
     return undefined;
   },