diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-22 12:31:58 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-22 12:32:53 -0700 |
commit | a915398175171e65b43e4711e887044047b4e60d (patch) | |
tree | 74977028c620d7cd9af95a7fc9d47111fe43f96d /src | |
parent | 27abf83a1ce6f057ea3051ab2d394fca54137978 (diff) |
export functions in pre phase even in asm (it's just in funcs that we don't)
Diffstat (limited to 'src')
-rw-r--r-- | src/jsifier.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index b966b5c8..c55072b4 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -495,10 +495,10 @@ function JSify(data, functionsOnly, givenFunctions) { EXPORTED_FUNCTIONS[ident] = 1; delete Functions.libraryFunctions[ident.substr(1)]; } - } else { - if (EXPORT_ALL || (ident in EXPORTED_FUNCTIONS)) { - contentText += '\nModule["' + ident + '"] = ' + ident + ';'; - } + } + if ((!ASM_JS || phase == 'pre') && + (EXPORT_ALL || (ident in EXPORTED_FUNCTIONS))) { + contentText += '\nModule["' + ident + '"] = ' + ident + ';'; } return depsText + contentText; } |