diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-28 14:12:26 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:18 -0800 |
commit | 123aeffa163828d93d75e4f498bb4f84f57562ac (patch) | |
tree | bbc155adad25b7da05f8cfc465dc04cb83c1793b /src/compiler.js | |
parent | 26e9eba5aa1db69ad6fa36f6b6f27aed7532623c (diff) |
do not allow memory growth in asm.js
Diffstat (limited to 'src/compiler.js')
-rw-r--r-- | src/compiler.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js index 3ce53b1e..05a03ffb 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -172,6 +172,7 @@ RUNTIME_DEBUG = LIBRARY_DEBUG || GL_DEBUG; // Settings sanity checks assert(!(USE_TYPED_ARRAYS === 2 && QUANTUM_SIZE !== 4), 'For USE_TYPED_ARRAYS == 2, must have normal QUANTUM_SIZE of 4'); +assert(!(ASM_JS && ALLOW_MEMORY_GROWTH), 'Cannot grow asm.js heap'); // Output some info and warnings based on settings |