Skip to content

Loader helpers could be namespaced #490

@JamesLMilner

Description

@JamesLMilner

At the moment the loader helpers put themselves onto the returned module, with a lot of potential for naming clashes. It seems like it would be sensible to namespace them somehow rather them attaching them onto the returned module?

To understand what I'm talking about:

instantiateStreaming(fetch("build/optimized.wasm"))
    .then(wasmModule => { // Type: ASUtil
         // wasmModule.getString  - Loader helper
         // wasmModule.add - Our exported function

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions