Skip to content

Commit cf3f778

Browse files
committed
fix memory growth error
1 parent a5b5727 commit cf3f778

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/preamble.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ var STATICTOP;
591591
#if USE_TYPED_ARRAYS
592592
function enlargeMemory() {
593593
#if ALLOW_MEMORY_GROWTH == 0
594-
abort('Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value ( ' + TOTAL_MEMORY + '), (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.');
594+
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.');
595595
#else
596596
// TOTAL_MEMORY is the current size of the actual array, and STATICTOP is the new top.
597597
#if ASSERTIONS

0 commit comments

Comments
 (0)