Remove a few instances of process.binding('stdio') from src/node.js
authorRyan Dahl <ry@tinyclouds.org>
Tue, 27 Sep 2011 22:04:01 +0000 (15:04 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 27 Sep 2011 22:04:01 +0000 (15:04 -0700)
src/node.js

index 25b2e3a..646408b 100644 (file)
       process.nextTick(Module.runMain);
 
     } else {
-      var binding = process.binding('stdio');
       var Module = NativeModule.require('module');
 
       // If stdin is a TTY.
       if (stdout) return stdout;
 
       var tty_wrap = process.binding('tty_wrap');
-      var binding = process.binding('stdio');
       var fd = 1;
 
       // Note stdout._type is used for test-module-load-list.js
       if (stdin) return stdin;
 
       var tty_wrap = process.binding('tty_wrap');
-      var binding = process.binding('stdio');
       var fd = 0;
 
       switch (tty_wrap.guessHandleType(fd)) {