diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-27 09:19:15 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-27 09:19:15 -0800 |
commit | 9d20f0799c3eb4136e2048274bf523cb9a81ed1e (patch) | |
tree | 137680df47fc375f2311852ded7bac0f7f35fd0c /src/jsifier.js | |
parent | 9c26a959a2dbd512e3c8f6aec04b59c25470dd39 (diff) |
fix NUM_NAMED_GLOBALS bug with global postsets and add test coverage
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index ac8037df..d62fa788 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -319,7 +319,7 @@ function JSify(data, functionsOnly, givenFunctions) { if (needsPostSet(value)) { // ident, or expression containing an ident ret.push({ intertype: 'GlobalVariablePostSet', - JS: makeSetValue(item.ident, i, value, 'i32', false, true) + ';' // ignore=true, since e.g. rtti and statics cause lots of safe_heap errors + JS: makeSetValue(makeGlobalUse(item.ident), i, value, 'i32', false, true) + ';' // ignore=true, since e.g. rtti and statics cause lots of safe_heap errors }); constant[i] = '0'; } |