aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-17 18:24:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-17 18:24:29 -0700
commit806310102346bb6cefd0fee21d6e336f7e07006a (patch)
tree32b94cc911708aace97ff6d13b2caf13b60f8d32
parenta45183574491919a5db562a81b1f191ddcb2a6c2 (diff)
improve error message on memory growth in asm.js
-rw-r--r--src/preamble.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 6f3a969c..a1755798 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -556,7 +556,7 @@ function enlargeMemory() {
#if ASM_JS == 0
abort('Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.');
#else
- abort('Cannot enlarge memory arrays in asm.js. Compile with -s TOTAL_MEMORY=X with X higher than the current value.');
+ abort('Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value, or (2) set Module.TOTAL_MEMORY before the program runs.');
#endif
#else
// TOTAL_MEMORY is the current size of the actual array, and STATICTOP is the new top.