Skip to content

WebAssembly JS String Builtins & the ESM Integration #11031

Closed

Description

@guybedford

What is the issue with the HTML Standard?

I wanted to bring the WebAssembly ESM Integration issue on string builtins up here WebAssembly/esm-integration#95 and to be added to the WhatNOT agenda.

The JS String Builtins proposal is a WebAssembly Phase 4 proposal that supports compile-time builtin imports to be turned on via the builtins compile-time option to WebAssembly.compile. When enabled, the wasm:js-string module name is used as a special module name which provides useful JS string methods. This "import" is not otherwise listed as an import when inspecting the WebAssembly.Module imports so behaves more like global intrinsic linkage like Array in Javascript modules than a modular import (and it can't be virtualized when the builtin is enabled).

This proposal is already shipping in browsers for the JS API, and sought Tag review at the time. In the Wasm ESM Integration we are looking to enable string builtins by default which would therefore apply in HTML as well, so it was suggested to raise for further discussion in a web context. Alternative suggestions for where to bring this proposal up are very welcome too.

Activity

  1. guybedford commented on Feb 15, 2025

    @guybedford
    ContributorAuthor

    I see the next meeting is at a time I likely can't make, removing the agenda label for now to re-add for the subsequent one in two weeks.

  2. added
    agenda+To be discussed at a triage meeting
    and removed
    agenda+To be discussed at a triage meeting
    on Feb 15, 2025
  3. guybedford commented on Feb 20, 2025

    @guybedford
    ContributorAuthor

    I've marked this item for the 27/02 meeting agenda //cc @annevk @eqrion.

  4. annevk commented on Feb 27, 2025

    @annevk
    Member

    I wonder if @whatwg/modules has any feedback on this.

  5. removed
    agenda+To be discussed at a triage meeting
    on Feb 27, 2025
  6. guybedford commented on Feb 27, 2025

    @guybedford
    ContributorAuthor

    For more info on the follow-up discussion from today's meeting, see the new tracking issue in WebAssembly/js-string-builtins#47.

  7. guybedford commented on Oct 8, 2025

    @guybedford
    ContributorAuthor

    WebAssembly has since specified wasm: and wasm-js:, and the ESM Integration was updated to use these conventions for string builtins in WebAssembly/esm-integration#95.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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