aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jsifier.js2
-rwxr-xr-xtests/runner.py2
2 files changed, 2 insertions, 2 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';
}
diff --git a/tests/runner.py b/tests/runner.py
index 6c4be115..1beef857 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -5956,7 +5956,7 @@ void*:16
self.do_run(path_from_root('tests', 'cubescript'), '*\nTemp is 33\n9\n5\nhello, everyone\n*', main_file='command.cpp')
def test_gcc_unmangler(self):
- #Settings.NUM_NAMED_GLOBALS = 0 # test coverage for this
+ Settings.NUM_NAMED_GLOBALS = 0 # test coverage for this
Building.COMPILER_TEST_OPTS = ['-I' + path_from_root('third_party')]