Skip to content

dlopen on Chrome #6633

@mdboom

Description

@mdboom

As is well known in these parts, Chrome requires that WebAssembly is compiled asynchronously.

I can make that work for the MAIN_MODULE, using WebAssembly.compileStreaming. However, for the SIDE_MODULE, I'm not sure how to make this work. I've experimented with rewriting loadWebAssemblyModule to use the asynchronous APIs, but then I have the issue that it's called from within dlopen, which needs to at least "feel" synchronous on the C side of things.

Do you have any advice or pointers on how to make this work? Are there any other examples of asynchronous work in JS that we fake to look synchronous on the C side?

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