--
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 emscripten-disc...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/CAH1xqgnEC%2B4oUWNZ2vKEGGPvsfYqbCr2KfBqLHwzwcGYNncSmQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2-sxHr8m3Jbd1FAj%2B7DJ2x-HkVOLNtwWGiO3O756pZRxw%40mail.gmail.com.
> Note that emscripten uses node only for its internal JS compiler. This means it's only used> to process your code, not, for example, untrusted code from the internet.Oh. I've been using it for testing stuff I build, simply because it was already on PATH.
Would a sounder method be to leave $EMSDK_NODE alone, so that Emscripten can use the version it was tested with for compiling and put another version of Node on PATH ahead of the Emscripten entries? If so, do I need any other environment variables set for the other version of Node?
We don't keep Node on PATH at present, because the only use we make of it is with Emscripten-related work. We use the same machines and accounts to work on products for Linux with a GCC Toolset, Android with the NDK, and WebAssembly with Emscripten, and we naturally prefer to keep those environments separate.It sounds as if the correct strategy is:Is that workable?
- Download and install a recent version of Node.js.
- When we initialise our development/test environment, put that Node onto the front of PATH before running emsdk_env.sh.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/CAH1xqg%3D7nwvze7rfozrbB4HS5zSoFJ6upfjNdUuHsQL7XsYxPw%40mail.gmail.com.
I wasn't clear. We would like to have Node on PATH inside our development environment when that is using Emscripten, but not when outside the development environment, or when using the development environment for platforms that don't involve WebAssembly.The development environment is very simple: a bash shell with additional environment variables set and extra PATH entries. If I've understood you correctly, adding a Node for running tests on to the front of PATH before source'ing emsk_env.sh should work. I think that would mean that running node via PATH will get us our testing Node version, while Emscripten will use its bundled Node version for internal stuff.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va29uGJ967oDd-6qMDEyRFNBGiHSr1jU5ocR3HqytTFvKtw%40mail.gmail.com.