diff options
Diffstat (limited to 'src/compiler.js')
-rw-r--r-- | src/compiler.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler.js b/src/compiler.js index 05a03ffb..96784cf3 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -172,7 +172,10 @@ 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'); +if (ASM_JS) { + assert(!ALLOW_MEMORY_GROWTH, 'Cannot grow asm.js heap'); + assert((TOTAL_MEMORY&(TOTAL_MEMORY-1)) == 0, 'asm.js heap must be power of 2'); +} // Output some info and warnings based on settings |