Skip to content

Current implementation of the shim is limiting #303

@whitequark

Description

@whitequark

I would like to ship, on npm, a few WASI commands that all need to use the virtualized filesystem. These commands are essentially pure functions that happen to be implemented in C++.

The browser shim implementation is perfect for this: I have a virtualized filesystem and arguments. The Node shim implementation seems to require the use of the host filesystem. It doesn't seem possible to use the virtualized filesystem from the browser implementation if I'm running on Node, limiting the usefulness of publishing an npm package.

It seems that the selection of the provided environment is done in a way that cannot be influenced by the code that uses the transpiled module. Am I missing anything?

(This seems related to #302)

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