emscripten-core/emscripten

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'subarray')

Closed this issue · 1 comments

we update the emscripten version from V3.1.42 to V4.0.14 , there some error:
1.Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'subarray').
let aKeyData = oJSPlayerWasm.HEAPU8.subarray(this.canvasIDData, this.canvasIDData + bufLen);//传递到C层
2.Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '198479').
oJSPlayerWasm.HEAP32[this.rawDataFrameInfoBuffer + 4 >> 2];

so how can solve it

This was likely a result of #24079. You now need to explicitly export HEAPU8 if you want to access it externally.