diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-13 18:49:19 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:18 -0800 |
commit | 3c38471a75ccc1f0f6dc142e97fde2cf615a625b (patch) | |
tree | e0e694e3358ac4173388287e7bceaba2949f45fa /src/jsifier.js | |
parent | 2e28a4acfa6af10b1661f16c8998e58ca2598143 (diff) |
work towards exports
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index ce094e1e..a7c04c89 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -333,7 +333,7 @@ function JSify(data, functionsOnly, givenFunctions) { } js += '\n' + makePointer('[0]', null, allocator, ['void*'], index) + ';'; } - if (EXPORT_ALL || (item.ident in EXPORTED_GLOBALS)) { + if (!ASM_JS && (EXPORT_ALL || (item.ident in EXPORTED_GLOBALS))) { js += '\nModule["' + item.ident + '"] = ' + item.ident + ';'; } if (BUILD_AS_SHARED_LIB == 2 && !item.private_) { @@ -704,7 +704,7 @@ function JSify(data, functionsOnly, givenFunctions) { func.JS += '\n//FUNCTION_END_MARKER_OF_SOURCE_FILE_' + associatedSourceFile + '\n'; } - if (EXPORT_ALL || (func.ident in EXPORTED_FUNCTIONS)) { + if (!ASM_JS && (EXPORT_ALL || (func.ident in EXPORTED_GLOBALS))) { func.JS += 'Module["' + func.ident + '"] = ' + func.ident + ';'; } |