diff options
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 + ';'; } |