diff options
-rw-r--r-- | src/parseTools.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 95dc46e0..cec9afb3 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1569,6 +1569,9 @@ function makePointer(slab, pos, allocator, type, ptr, finalMemoryInitialization) if (typeof slab == 'object' && slab.length > chunkSize) { slab = chunkify(slab); } + if (typeof types == 'object') { + while (types.length < slab.length) types.push(0); + } if (typeof types != 'string' && types.length > chunkSize) { types = chunkify(types); } else { |