diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-05-02 23:42:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 23:42:32 +0200 |
commit | 7ea87f571b01412fde39e30d596abec718ceb3ba (patch) | |
tree | e9d9a44c7e6d15ea3e2938143f9f0e4e39903f3f /devtools | |
parent | 04c8f8f8bc2d2dccb6675bd1ed9912f098e76739 (diff) | |
parent | 3dfd1412e4accfb442ddb9b83bf4e324742756c5 (diff) | |
download | uxp-7ea87f571b01412fde39e30d596abec718ceb3ba.tar.gz |
Merge pull request #319 from janekptacijarabaci/debug_warning_1
moebius#146: Building with "--enable-debug" - fix some warnings
Diffstat (limited to 'devtools')
-rwxr-xr-x | devtools/client/sourceeditor/tern/def.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/devtools/client/sourceeditor/tern/def.js b/devtools/client/sourceeditor/tern/def.js index 71f6e79917..f4a7ba9c86 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/); |