aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorJez Ng <me@jezng.com>2013-07-11 19:34:01 -0700
committerJez Ng <me@jezng.com>2013-07-11 20:37:58 -0700
commit470b7da45616f7c72794cf3ced71f21db2ebdc2c (patch)
tree66ea2d5aea7699a4b444e093ed666fc0b9ff71aa /src/jsifier.js
parentc1e1d87bc3b9e249795543e44a1224c2f03154ce (diff)
Filter out unnamed_addr globals from symbol table.
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index bc073aaa..6faea2b4 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -286,6 +286,8 @@ function JSify(data, functionsOnly, givenFunctions) {
allocator = 'ALLOC_NONE';
}
+ Variables.globals[item.ident].named = item.named;
+
if (ASM_JS && (MAIN_MODULE || SIDE_MODULE) && !item.private_ && !NAMED_GLOBALS && isIndexableGlobal(item.ident)) {
// We need this to be named (and it normally would not be), so that it can be linked to and used from other modules
Variables.globals[item.ident].linkable = 1;