Skip to content

Commit 36e2bd4

Browse files
committed
Fix incorrect free pointer on marshall
1 parent fced3dd commit 36e2bd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports.blake3 = async (bytes, hashLength = DEFAULT_LENGTH) => {
2222
[inputAddr, bytes.length, outputAddr, hashLength],
2323
)
2424

25-
const res = wasm.HEAPU8.subarray(outputAddr, outputAddr + hashLength)
25+
const res = wasm.HEAPU8.slice(outputAddr, outputAddr + hashLength)
2626
wasm._free(outputAddr)
2727
wasm._free(inputAddr)
2828
return res

0 commit comments

Comments
 (0)