diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-09 16:25:56 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-09 17:26:57 -0700 |
commit | 7b2d1583a184edef4b920982426706224b937414 (patch) | |
tree | 8f93cbbd4990365241b17fd7e2a9b355eb1d2cd1 /src/jsifier.js | |
parent | bba3cd9cf5d797a2aef02bf966d595d3ec3cbcad (diff) |
run postsets right before main, and after the memory initializer has been set up
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 2a9c5ba8..6ef9781c 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1529,7 +1529,10 @@ function JSify(data, functionsOnly, givenFunctions) { } } + // Run postsets right before main, and after the memory initializer has been set up + print('__ATMAIN__.push(function() {\n'); print(itemsDict.GlobalVariablePostSet.map(function(item) { return item.JS }).join('\n')); + print('});\n'); return; } |