File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,8 +136,6 @@ static bool need_tick_cb;
136136static Persistent<String> tick_callback_sym;
137137
138138
139- static bool use_uv = true ;
140-
141139#ifdef OPENSSL_NPN_NEGOTIATED
142140static bool use_npn = true ;
143141#else
@@ -2076,7 +2074,7 @@ static Handle<Object> GetFeatures() {
20762074#endif
20772075 );
20782076
2079- obj->Set (String::NewSymbol (" uv" ), Boolean::New (use_uv ));
2077+ obj->Set (String::NewSymbol (" uv" ), True ( ));
20802078 obj->Set (String::NewSymbol (" ipv6" ), True ()); // TODO ping libuv
20812079 obj->Set (String::NewSymbol (" tls_npn" ), Boolean::New (use_npn));
20822080 obj->Set (String::NewSymbol (" tls_sni" ), Boolean::New (use_sni));
@@ -2348,9 +2346,6 @@ static void ParseArgs(int argc, char **argv) {
23482346 if (strstr (arg, " --debug" ) == arg) {
23492347 ParseDebugOpt (arg);
23502348 argv[i] = const_cast <char *>(" " );
2351- } else if (!strcmp (arg, " --use-legacy" )) {
2352- use_uv = false ;
2353- argv[i] = const_cast <char *>(" " );
23542349 } else if (strcmp (arg, " --version" ) == 0 || strcmp (arg, " -v" ) == 0 ) {
23552350 printf (" %s\n " , NODE_VERSION );
23562351 exit (0 );
Original file line number Diff line number Diff line change 3030 var EventEmitter ;
3131
3232 function startup ( ) {
33-
34- if ( 'NODE_USE_UV' in process . env ) {
35- process . features . uv = process . env . NODE_USE_UV != '0' ;
36- }
37-
38- // make sure --use-uv is propagated to child processes
39- if ( process . features . uv ) {
40- process . env . NODE_USE_UV = '1' ;
41- } else {
42- delete process . env . NODE_USE_UV ;
43- }
44-
4533 EventEmitter = NativeModule . require ( 'events' ) . EventEmitter ;
4634 process . __proto__ = EventEmitter . prototype ;
4735 process . EventEmitter = EventEmitter ; // process.EventEmitter is deprecated
453441 var Script = process . binding ( 'evals' ) . NodeScript ;
454442 var runInThisContext = Script . runInThisContext ;
455443
456- // A special hook to test the new platform layer. Use the command-line
457- // flag --use-uv to enable the libuv backend instead of the legacy
458- // backend.
459- function translateId ( id ) {
460- switch ( id ) {
461- default :
462- return id ;
463- }
464- }
465-
466444 function NativeModule ( id ) {
467- id = translateId ( id ) ;
468445 this . filename = id + '.js' ;
469446 this . id = id ;
470447 this . exports = { } ;
475452 NativeModule . _cache = { } ;
476453
477454 NativeModule . require = function ( id ) {
478- id = translateId ( id ) ;
479-
480455 if ( id == 'native_module' ) {
481456 return NativeModule ;
482457 }
501476 } ;
502477
503478 NativeModule . getCached = function ( id ) {
504- id = translateId ( id ) ;
505479 return NativeModule . _cache [ id ] ;
506480 }
507481
508482 NativeModule . exists = function ( id ) {
509- id = translateId ( id ) ;
510483 return ( id in NativeModule . _source ) ;
511484 }
512485
513486 NativeModule . getSource = function ( id ) {
514- id = translateId ( id ) ;
515487 return NativeModule . _source [ id ] ;
516488 }
517489
You can’t perform that action at this time.
0 commit comments