diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-27 10:01:43 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-27 10:02:38 -0800 |
commit | 7b762f571bc9b52f3e7ed3f18e960fb155a91177 (patch) | |
tree | f994ba632d40c9cb645c89d7128fc250e752d6d1 | |
parent | 6782b5e97fcfb6a6da94b9ecc2fa57b76e943206 (diff) |
notice type of aliases when no named globals
-rw-r--r-- | src/intertyper.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index 124dbeb8..9dd47c72 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -457,6 +457,9 @@ function intertyper(data, sidePass, baseLineNums) { }; ret.type = ret.value.type; Types.needAnalysis[ret.type] = 0; + if (!NAMED_GLOBALS) { + Variables.globals[ret.ident].type = ret.type; + } return [ret]; } if (item.tokens[2].text == 'type') { |