diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-26 14:22:21 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-03 14:41:29 -0700 |
commit | 3b07ce3ad9e9975b8c09b98d53c3df53363a9134 (patch) | |
tree | 3851511ec66c4f350d23932fccbb2d47e247080c /src/jsifier.js | |
parent | b283401f76378abe71f6ff14b0dda7f10c35c723 (diff) |
forward parent Module to side module
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 0818f128..7e58d61d 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1664,6 +1664,7 @@ function JSify(data, functionsOnly, givenFunctions) { print('STATIC_BASE = ' + Runtime.GLOBAL_BASE + ';\n'); print('STATICTOP = STATIC_BASE + ' + Runtime.alignMemory(Variables.nextIndexedOffset) + ';\n'); } else { + print('var H_BASE = parentModule["_malloc"](' + Runtime.alignMemory(Variables.nextIndexedOffset) + ');\n'); print('// STATICTOP = STATIC_BASE + ' + Runtime.alignMemory(Variables.nextIndexedOffset) + ';\n'); // comment as metadata only } } |