@wasm-audio-decoders/common
Advanced tools
Comparing version 7.0.0 to 7.0.1
{ | ||
"name": "@wasm-audio-decoders/common", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Web Assembly Audio Decoders Common", | ||
"module": "index.js", | ||
"main": "index.js", | ||
"sideEffects": false, | ||
"files": [ | ||
@@ -8,0 +9,0 @@ "index.js", |
@@ -213,3 +213,3 @@ export default function WASMAudioDecoderCommon() { | ||
this.allocateTypedArray = (len, TypedArray, setPointer = true) => { | ||
const ptr = this._wasm._malloc(TypedArray.BYTES_PER_ELEMENT * len); | ||
const ptr = this._wasm["_malloc"](TypedArray.BYTES_PER_ELEMENT * len); | ||
if (setPointer) this._pointers.add(ptr); | ||
@@ -226,3 +226,3 @@ | ||
this._pointers.forEach((ptr) => { | ||
this._wasm._free(ptr); | ||
this._wasm["_free"](ptr); | ||
}); | ||
@@ -229,0 +229,0 @@ this._pointers.clear(); |
59211