Skip to content

Are names and UTF-8 validation web-only? #550

@littledan

Description

@littledan

Right now, JS.md refers to Web.md to define names. That document just seems to say, decode the names as UTF-8 into UTF-16 and throw eagerly on any validation errors when validating the module as a whole. Is that right? A couple questions:

  • Is there a particular reason this is in Web.md and not JS.md, and says "on the Web"? It's hard for me to understand which part of any of this would be skipped in other environments where WebAssembly is used. For example, wouldn't Node.js want to do all of the same things?
  • Does that conversion algorithm do anything additional besides throw on invalid UTF-8? Why not just say, "throw on invalid UTF-8"?

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