The desktop version of JS9 astronomical image display uses Electron to load an Emscripten-enabled web page. This works great ... I'd now like to use NODEFS to mount the host file system root into MEMFS, so that we can access our large local data files without first having to retrieve and store them in the MEMFS heap. I can easily enable nodeIntegration on the JS9 window, but a call to mount NODEFS fails mount's assertion that ENVIRONMENT_IS_NODE, Emscripten having set the environment to "web" (since the window object exists in in this hybrid scenario.)
Is there a way to tell Emscripten at run-time that the environment should be set to "node"? Or that node functionality exists, even though it's a "web" environment (hybrid, actually)? I see a compile-time option to set the environment, but I would much prefer to keep using one set of compiled files for all versions. -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
