Skip to content

Regression: mainScriptUrlOrBlob ignored when USE_ES6_IMPORT_META is off #23769

@JoeOsborn

Description

@JoeOsborn

Per #23171 (comment)

The recent removal of USE_ES6_IMPORT_META broke a use case like this:

  1. I want to host an emscripten-compiled package somewhere (e.g., a CDN) that is compiled to use pthreads
  2. I want to instantiate a module from those scripts on another origin domain
  3. Browsers refuse to download cross-origin workers, so I can't create threads.

This used to be supported using either an importScripts() hack in the worker or by downloading the whole script as a blob, but now that's not possible since the fix in #23171 forces the use of a specific file name.

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