Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
node: disable uv backend if NODE_USE_UV=0
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Sep 14, 2011
1 parent 6cb1540 commit f8b9094
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/node.js
Expand Up @@ -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) {
Expand Down

0 comments on commit f8b9094

Please sign in to comment.