summaryrefslogtreecommitdiffstats
path: root/devtools
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 /devtools
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 'devtools')
-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/);