Skip to content

Commit

Permalink
net_uv: child process use net_legacy; recognize NODE_USE_UV=1 env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 20, 2011
1 parent d0a9e64 commit 02699a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

var util = require('util');
var EventEmitter = require('events').EventEmitter;
var Stream = require('net').Stream;
var Stream = require('net_legacy').Stream; // FIXME
var InternalChildProcess = process.binding('child_process').ChildProcess;
var constants;

Expand Down
2 changes: 1 addition & 1 deletion src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
// backend.
function translateId(id) {
if (id == 'net') {
return process.useUV ? 'net_uv' : 'net_legacy';
return process.useUV || process.env.NODE_USE_UV ? 'net_uv' : 'net_legacy';
} else {
return id;
}
Expand Down

0 comments on commit 02699a3

Please sign in to comment.