tests: Fix node check for other envs
This commit is contained in:
parent
8d24a5d1a9
commit
c3326fa0da
|
|
@ -63,7 +63,7 @@ int main(int argc, char **argv) {
|
|||
home[0] = 0;
|
||||
|
||||
EM_ASM({
|
||||
if (process && process.env) {
|
||||
if (typeof process === 'object' && typeof process.env === 'object') {
|
||||
var path = process.env.PYTHONPATH;
|
||||
var home = process.env.PYTHONHOME;
|
||||
if (path) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue