diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-08 18:33:43 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-08 18:33:43 -0800 |
commit | 093ebe033d9bc906babb1a3511e2a4638b58d6a0 (patch) | |
tree | 3f69c8ecb0c07306e83cc4a89dfa741058153083 /src/jsifier.js | |
parent | 5a74e784b2feac3268dedd17d425a26b0437452d (diff) |
properly resolve multilevel function aliases, fixes bug with adding indexing for aliases. also optimize function indexing in compiler
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 45177c3f..b02164f6 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -341,7 +341,7 @@ function JSify(data, functionsOnly, givenFunctions) { var ret = [item]; item.JS = 'var ' + item.ident + ';'; // Set the actual value in a postset, since it may be a global variable. We also order by dependencies there - var value = finalizeLLVMParameter(item.value); + var value = Variables.globals[item.ident].resolvedAlias = finalizeLLVMParameter(item.value); ret.push({ intertype: 'GlobalVariablePostSet', ident: item.ident, |