Skip to content

SharedArrayBuffer error #1

@mgerhardy

Description

@mgerhardy

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

Caused by this line:

  a.href = URL.createObjectURL(new Blob([new Uint8Array(Module["HEAPU8"].buffer, 
           buffer, buffer_size)], {type: UTF8ToString(mime_type)}));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions