aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-06-09 15:55:25 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-06-09 15:55:25 -0700
commit8f2c2a8de48f1b2a39f38ba85dde18e5e14939fc (patch)
treeac65246d3efc39894cd08e57673080ee1d522d89
parente9e7efa370ee972dc34dd86f1e4e114588e63840 (diff)
fix warn64
-rw-r--r--src/preamble.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 8a1e97c7..ac3ec56f 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -58,9 +58,9 @@ function SAFE_HEAP_ACCESS(dest, type, store, ignore) {
var warned64 = false;
function warn64() {
if (!warned64) {
- __ATEXIT__.push(function() {
+ __ATEXIT__.push({ func: function() {
print('Warning: using a 64-bit type with USE_TYPED_ARRAYS == 2. This is emulated as a 32-bit value, and will likely fail horribly.');
- });
+ } });
warned64 = true;
}
}