diff options
Diffstat (limited to 'src/shell_sharedlib.js')
-rw-r--r-- | src/shell_sharedlib.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shell_sharedlib.js b/src/shell_sharedlib.js index 33fb521c..c070c617 100644 --- a/src/shell_sharedlib.js +++ b/src/shell_sharedlib.js @@ -9,12 +9,14 @@ Module.cleanups = []; #if ASM_JS + var H_BASE = 0; // Each module has its own stack var STACKTOP = parentModule['_malloc'](TOTAL_STACK); assert(STACKTOP % 8 == 0); var STACK_MAX = STACKTOP + TOTAL_STACK; Module.cleanups.push(function() { parentModule['_free'](STACKTOP); // XXX ensure exported + parentModule['_free'](H_BASE); }); #endif |