summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-05-02 16:23:14 +0200
committerGitHub <noreply@github.com>2018-05-02 16:23:14 +0200
commit04c8f8f8bc2d2dccb6675bd1ed9912f098e76739 (patch)
tree7d78110b55ac5d72eb9f15584ec18afbb5948670 /devtools
parent832046aeb726dee290d2827a20d571034b6bc64a (diff)
parent3442ae7718679a4da8664bdbb561f746e0357203 (diff)
downloaduxp-04c8f8f8bc2d2dccb6675bd1ed9912f098e76739.tar.gz
Merge pull request #320 from janekptacijarabaci/instanceof_negations_1
palemoon#1173: Fix unsafe "instanceof" negations
Diffstat (limited to 'devtools')
-rw-r--r--devtools/server/child.js2
-rw-r--r--devtools/server/main.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/devtools/server/child.js b/devtools/server/child.js
index e2838f08d4..c69b0a3fb4 100644
--- a/devtools/server/child.js
+++ b/devtools/server/child.js
@@ -61,7 +61,7 @@ try {
try {
m = require(module);
- if (!setupChild in m) {
+ if (!(setupChild in m)) {
dumpn(`ERROR: module '${module}' does not export '${setupChild}'`);
return false;
}
diff --git a/devtools/server/main.js b/devtools/server/main.js
index 475995493f..ac76adb831 100644
--- a/devtools/server/main.js
+++ b/devtools/server/main.js
@@ -1040,7 +1040,7 @@ var DebuggerServer = {
try {
m = require(module);
- if (!setupParent in m) {
+ if (!(setupParent in m)) {
dumpn(`ERROR: module '${module}' does not export '${setupParent}'`);
return false;
}