summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-05-02 23:42:32 +0200
committerGitHub <noreply@github.com>2018-05-02 23:42:32 +0200
commit7ea87f571b01412fde39e30d596abec718ceb3ba (patch)
treee9d9a44c7e6d15ea3e2938143f9f0e4e39903f3f /toolkit
parent04c8f8f8bc2d2dccb6675bd1ed9912f098e76739 (diff)
parent3dfd1412e4accfb442ddb9b83bf4e324742756c5 (diff)
downloadUXP-7ea87f571b01412fde39e30d596abec718ceb3ba.tar
UXP-7ea87f571b01412fde39e30d596abec718ceb3ba.tar.gz
UXP-7ea87f571b01412fde39e30d596abec718ceb3ba.tar.lz
UXP-7ea87f571b01412fde39e30d596abec718ceb3ba.tar.xz
UXP-7ea87f571b01412fde39e30d596abec718ceb3ba.zip
Merge pull request #319 from janekptacijarabaci/debug_warning_1
moebius#146: Building with "--enable-debug" - fix some warnings
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/jetpack/dev/volcan.js2
-rw-r--r--toolkit/jetpack/sdk/lang/weak-set.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/jetpack/dev/volcan.js b/toolkit/jetpack/dev/volcan.js
index 6a68ed12d..7ec208eec 100644
--- a/toolkit/jetpack/dev/volcan.js
+++ b/toolkit/jetpack/dev/volcan.js
@@ -139,7 +139,7 @@ var Client = Class({
.then(this.onReady.bind(this, this.root), this.onFail);
} else {
var actor = this.get(packet.from) || this.root;
- var event = actor.events[packet.type];
+ event = actor.events[packet.type];
if (event) {
var message = new MessageEvent(packet.type, {
data: event.read(packet)
diff --git a/toolkit/jetpack/sdk/lang/weak-set.js b/toolkit/jetpack/sdk/lang/weak-set.js
index 8972602a5..0b81a395b 100644
--- a/toolkit/jetpack/sdk/lang/weak-set.js
+++ b/toolkit/jetpack/sdk/lang/weak-set.js
@@ -2,12 +2,12 @@
* 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";
+
module.metadata = {
"stability": "experimental"
};
-"use strict";
-
const { Cu } = require("chrome");
function makeGetterFor(Type) {