diff options
-rw-r--r-- | src/parseTools.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 6c6a04d4..95dc46e0 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1539,10 +1539,9 @@ function makePointer(slab, pos, allocator, type, ptr, finalMemoryInitialization) } types = 'i8'; } - if (allocator == 'ALLOC_NONE') { + if (allocator == 'ALLOC_NONE' && USE_TYPED_ARRAYS == 2) { if (!finalMemoryInitialization) { // writing out into memory, without a normal allocation. We put all of these into a single big chunk. - assert(USE_TYPED_ARRAYS == 2); assert(typeof slab == 'object'); assert(slab.length % QUANTUM_SIZE == 0, slab.length); // must be aligned already var offset = ptr - TOTAL_STACK; // we assert on GLOBAL_BASE being equal to TOTAL_STACK |