From 120bc39f96ad2ae97f65fe677dd2b875159d406d Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 30 Nov 2018 14:45:59 -0800 Subject: Check $NODE environment variable when looking for node (#1792) This allows me to run tests on a system where the default installed node is not recent enough. --- scripts/test/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/test') diff --git a/scripts/test/shared.py b/scripts/test/shared.py index a7bdda085..f8da23851 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -157,7 +157,7 @@ NATIVECC = (os.environ.get('CC') or which('mingw32-gcc') or which('gcc') or which('clang')) NATIVEXX = (os.environ.get('CXX') or which('mingw32-g++') or which('g++') or which('clang++')) -NODEJS = which('nodejs') or which('node') +NODEJS = os.getenv('NODE', which('nodejs') or which('node')) MOZJS = which('mozjs') or which('spidermonkey') EMCC = which('emcc') -- cgit v1.2.3