summaryrefslogtreecommitdiff
path: root/src/intertyper.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-27 09:51:36 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-27 09:51:36 -0800
commit6782b5e97fcfb6a6da94b9ecc2fa57b76e943206 (patch)
tree42cc44c1b90a7af08b98de4d592029c8648a3db5 /src/intertyper.js
parent9d20f0799c3eb4136e2048274bf523cb9a81ed1e (diff)
switch to all or nothing named globals, and add testing
Diffstat (limited to 'src/intertyper.js')
-rw-r--r--src/intertyper.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index dbd5f458..124dbeb8 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -507,7 +507,7 @@ function intertyper(data, sidePass, baseLineNums) {
private_: private_,
lineNum: item.lineNum
};
- if (NUM_NAMED_GLOBALS >= 0) {
+ if (!NAMED_GLOBALS) {
Variables.globals[ret.ident].type = ret.type;
}
Types.needAnalysis[ret.type] = 0;