Skip to content

WASI inheritSystem() warnings are incorrect #101

Description

@Marcono1234

At two places in the documentation there are warnings about using WASI builder inheritSystem():

However, inheritSystem() only seems to inherit stdout, stderr and stdin but not the filesystem or environment variables:

public Builder inheritSystem() {
this.stdout = System.out;
this.stdin = System.in;
this.stderr = System.err;
return this;
}

Or am I overlooking something? Could be the case of course that the CLI additionally provides access to the host file system, but that is unrelated to inheritSystem() then?

(As side note: It would also be good if inheritSystem() and also other parts of the API had Javadoc to make it clearer what they do and how to use them. But I guess that might be a bigger project.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions