Permalink
Browse files

net_uv: child process use net_legacy; recognize NODE_USE_UV=1 env var

  • Loading branch information...
1 parent d0a9e64 commit 02699a3a8e984caf740f991ed56cdb9278034acc @ry ry committed Jun 20, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/child_process.js
  2. +1 −1 src/node.js
View
@@ -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;
View
@@ -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;
}

0 comments on commit 02699a3

Please sign in to comment.