nodejs / uvwasi

WASI syscall API built atop libuv
MIT License
226 stars 50 forks source link

Directories with more than ~150 files are truncated #174

Closed vshymanskyy closed 2 years ago

vshymanskyy commented 2 years ago

Steps o reproduce

This is related to https://github.com/bytecodealliance/wasmtime/issues/2493

Example: ls-test.zip

I'm using https://github.com/wasm3/node-wasm-run to reproduce this:

wasm-run ls.wasm testfolder | wc -l

Expected result

303

Actual result

147

Log

# nvm install v18.8.0
# npm install wasm-run -g
# node --version                     
v18.8.0
# wasm-run ls.wasm testfolder | wc -l
147
# wasmtime --dir=. ls.wasm -- testfolder | wc -l
303

This was reported here: https://github.com/wasm3/wasm3/issues/357