fiatjaf / jq-web

jq in the browser with emscripten.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doesn't run on Node.js

fiatjaf opened this issue · comments

Due to a totally unexpected issue with process.platform being reported as nonexistent in the instantiation of emscripten's NODEFS, an error is thrown when jq-web is run on Node.js.

I imagine that an easy solution (already tried by me with manual compiled code editing) would be to not instantiate NODEFS in any way, but perhaps fixing the process.platform would be better.

I'm asking for help on this topic at https://groups.google.com/forum/#!topic/emscripten-discuss/Ikl3qxPoFAk

If anyone seeing this has any solution or clue to a solution it will be highly appreciated.

Fixed at 5104925.