Skip to content

Latest NodeJS versions no longer accept absolute paths as WASI preview1 functions' arguments #1746

Description

@fzhinkin

After nodejs/node#59791, NodeJS no longer accept absolute paths as arguments to WASI P1 functions.

WasiFileSystem does not convert paths from absolute to relative before passing them to WASI functions (https://github.com/square/okio/blob/83c8481334f3cae144f43cc7d7f256531b8c0340/okio-wasifilesystem/src/wasmWasiMain/kotlin/okio/WasiFileSystem.kt#L471), so it is prone to this problem.

Metadata

Metadata

Assignees

No one assigned

    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