aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index b446ade6..e73f6140 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1520,7 +1520,7 @@ function makePointer(slab, pos, allocator, type, ptr) {
}
if (!fail) types = 'i8';
}
- if (typeof slab != 'string') slab = JSON.stringify(slab);
+ if (typeof slab == 'object') slab = '[' + slab.join(',') + ']';
// JS engines sometimes say array initializers are too large. Work around that by chunking and calling concat to combine at runtime
var chunkSize = 10240;
function chunkify(array) {