You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am compiling my code with emscripten pthread support and get this error.
Uncaught TypeError: Blob constructor: ArrayBufferView branch of ((ArrayBufferView
or ArrayBuffer) or Blob or USVString) can't be a SharedArrayBuffer or an
ArrayBufferView backed by a SharedArrayBuffer
here is the fix for download (upload doesn't need to be fixed) - first copy into an ArrayBuffer and then use that one.
/// Offer a buffer in memory as a file to download, specifying download filename and mime typevara=document.createElement('a');a.download=UTF8ToString(filename);varbufferCopy=newArrayBuffer(buffer_size);varuint8Array=newUint8Array(bufferCopy);uint8Array.set(newUint8Array(Module["HEAPU8"].buffer,buffer,buffer_size));a.href=URL.createObjectURL(newBlob([uint8Array],{type: UTF8ToString(mime_type)}));a.click();
I am compiling my code with emscripten pthread support and get this error.
Caused by this line:
The text was updated successfully, but these errors were encountered: