aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-11-28 13:00:41 -0800
committerAlon Zakai <azakai@mozilla.com>2010-11-28 13:00:41 -0800
commit999e3c466bbe9743528af97579b13846b97b296a (patch)
tree2c4f3bd6251aca2f03dc84e705c1a9d42522be1d /src/preamble.js
parent6fbe4e7bc8a8ca7f601cae1fe43851dcb8728125 (diff)
paranoid memory initialization in typed arrays, lua demo update (with missing files)
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 83dac618..f959e89f 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -196,6 +196,7 @@ function __initializeRuntime__() {
for (var i = 0; i < HEAP.length; i++) {
IHEAP[i] = HEAP[i];
}
+ HEAP = IHEAP;
FHEAP = new Float64Array(TOTAL_MEMORY);
} else {
IHEAP = HEAP; // fallback