We should be able to detect the locations of implementations through something similar to which js, which d8, etc. We should also probably run the --version to make sure it is compatible before adding it. This is slightly dangerous because we could be running things that are not ECMAScript implementations.
We should be able to detect the locations of implementations through something similar to
which js,which d8, etc. We should also probably run the--versionto make sure it is compatible before adding it. This is slightly dangerous because we could be running things that are not ECMAScript implementations.