New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NODEFS not compatible with Deno when used through Pyodide #21673
Comments
Emscripten does not have any official support for Deno, and we don't currently do any testing under Deno. Does deno claim to be API compatible with node for things like the |
If you (or anyone else) would like to contribute some level support and testing with deno that would be most welcome. |
@sbc100 Deno claims Does this look like anything that would affect NODEFS? In any case I have raised this with Deno as well: denoland/deno#23181 |
I don't think our NODEFS code depends on any of those things... but I could be wrong. It might be good to create a simple/small example of a C program that reproduces this issue.. then perhaps do some tracing debugging to see which NODEFS/fs calls are used. |
This is an issue I have originally rised with Pyodide here: pyodide/pyodide#4647
As Pyodide utilizes NODEFS directly from Emscripten, the maintainers suggested I raise this bug here.
This is an example Node.js program that uses Pyodide to write a file in a NODEFS-mounted folder:
This works as expected, the file
out.txt
with contentsHello, World!
is written to current folder.The same code, adjusted to run with Deno:
This, however, crashes with the following output:
Not sure if NODEFS aims to officially support Deno, or if this is even fixable on Emscripten side (maybe it's purely a Deno bug) -- but raising it anyway for awareness.
The text was updated successfully, but these errors were encountered: