diff --git a/src/stringify.js b/src/stringify.js index df291fd..7746463 100644 --- a/src/stringify.js +++ b/src/stringify.js @@ -153,7 +153,7 @@ export function stringify(value, reducers) { case "BigUint64Array": { /** @type {import("./types.js").TypedArray} */ const typedArray = thing; - const base64 = encode64(typedArray.buffer); + const base64 = encode64(typedArray.slice().buffer); str = '["' + type + '","' + base64 + '"]'; break; }