summaryrefslogtreecommitdiffstats
path: root/devtools/client/sourceeditor
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-02 07:08:14 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-02 07:08:14 +0200
commit3dfd1412e4accfb442ddb9b83bf4e324742756c5 (patch)
tree7e95ecddc7e319c47164e175cd31f417646fad7c /devtools/client/sourceeditor
parent61de1c80cdc6c04e71fde07cc5028af503438134 (diff)
downloadUXP-3dfd1412e4accfb442ddb9b83bf4e324742756c5.tar
UXP-3dfd1412e4accfb442ddb9b83bf4e324742756c5.tar.gz
UXP-3dfd1412e4accfb442ddb9b83bf4e324742756c5.tar.lz
UXP-3dfd1412e4accfb442ddb9b83bf4e324742756c5.tar.xz
UXP-3dfd1412e4accfb442ddb9b83bf4e324742756c5.zip
Building with "--enable-debug" - fix some warnings
https://github.com/MoonchildProductions/moebius/pull/146 https://github.com/MoonchildProductions/Pale-Moon/pull/1400
Diffstat (limited to 'devtools/client/sourceeditor')
-rwxr-xr-xdevtools/client/sourceeditor/tern/def.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/devtools/client/sourceeditor/tern/def.js b/devtools/client/sourceeditor/tern/def.js
index 71f6e7991..f4a7ba9c8 100755
--- a/devtools/client/sourceeditor/tern/def.js
+++ b/devtools/client/sourceeditor/tern/def.js
@@ -77,7 +77,8 @@
}
},
word: function(re) {
- var word = "", ch, re = re || /[\w$]/;
+ var word = "", ch;
+ re = re || /[\w$]/;
while ((ch = this.spec.charAt(this.pos)) && re.test(ch)) { word += ch; ++this.pos; }
return word;
},
@@ -187,7 +188,7 @@
if (top && this.forceNew) return new infer.Obj(base);
return infer.getInstance(base);
} else if (this.eat(":")) {
- var name = this.word(/[\w$\.]/)
+ name = this.word(/[\w$\.]/)
return infer.getSymbol(name)
} else if (comp && this.eat("!")) {
var arg = this.word(/\d/);