Skip to content

When embedded in the web, clarify how export/import names convert to JS strings #569

@pizlonator

Description

@pizlonator

When embedded in the web, the exports and imports of a module are represented as JS objects. JS objects are keyed by JS strings, which can be any UCS16 (roughly) sequence. WebAssembly uses sequences of bytes. Therefore, we need to specify conversion rules from WebAssembly byte sequence names to JS strings. There will be JS strings that don't convert gracefully to bytes and vice-versa, so we also need something sensible to happen when the conversion fails.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions