node: disable uv backend if NODE_USE_UV=0

v0.7.4-release
Ben Noordhuis 2011-09-15 00:28:45 +02:00
parent 6cb15403d3
commit f8b90946ae
1 changed files with 7 additions and 2 deletions

View File

@ -31,8 +31,13 @@
function startup() {
if (process.env.NODE_USE_UV == '1') process.features.uv = true;
if (process.env.NODE_USE_HTTP1 == '1') process.features.http1 = true;
if ('NODE_USE_UV' in process.env) {
process.features.uv = process.env.NODE_USE_UV != '0';
}
if ('NODE_USE_HTTP1' in process.env) {
process.features.http1 = process.env.NODE_USE_HTTP1 != '0';
}
// make sure --use-uv is propagated to child processes
if (process.features.uv) {