Skip to content

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

Closed

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.

Activity

  1. titzer commented on Feb 29, 2016

    @titzer

    SGTM, wanna take a stab at updating Web.md?

  2. jfbastien commented on Feb 29, 2016

    @jfbastien
    Member

    Do we want simple failure on the web when conversion fails, or do we want to try to "fix" things? Failure is fine IMO.

  3. pizlonator commented on Feb 29, 2016

    @pizlonator
    ContributorAuthor

    Yup!

    -Filip

    On Feb 29, 2016, at 11:10 AM, titzer [email protected] wrote:

    SGTM, wanna take a stab at updating Web.md?

    —
    Reply to this email directly or view it on GitHub #569 (comment).

  4. pizlonator commented on Feb 29, 2016

    @pizlonator
    ContributorAuthor

    I was thinking eager failure at module compile time.

    -Filip

    On Feb 29, 2016, at 11:20 AM, JF Bastien [email protected] wrote:

    Do we want simple failure on the web when conversion fails, or do we want to try to "fix" things? Failure is fine IMO.

    —
    Reply to this email directly or view it on GitHub #569 (comment).

  5. added this to the MVP milestone on Mar 4, 2016
  6. s3ththompson commented on Jul 26, 2016

    @s3ththompson
    Member

    Fixed in 04c63fb

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions