Closed
Description
- Version: 13.7.0
- Platform: Windows 10 1903 x64
- Subsystem:
wasi
WASI preopen option fails on Windows, but works on Linux (including Linux subsystem on Windows in the same dir).
In the simplest case, to reproduce the issue open REPL with node --experimental-wasi-unstable-preview1
in any directory and try to construct a WASI object:
> process.cwd()
'C:\\Users\\rreverser\\Projects'
> const {WASI} = require('wasi')
undefined
> (node:18424) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
> new WASI({ env: {}, args: [], preopens: { '/sandbox': process.cwd() } })
Uncaught Error: UVWASI_EISDIR, uvwasi_init
at new WASI (wasi.js:59:18) {
errno: 31,
code: 'UVWASI_EISDIR',
syscall: 'uvwasi_init'
}
Same error can be seen in a real code, too.
Metadata
Metadata
Assignees
Labels
No labels