Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Err: The "sys" module is now called "util" #84

Open
richzw opened this issue Jul 22, 2012 · 1 comment
Open

Err: The "sys" module is now called "util" #84

richzw opened this issue Jul 22, 2012 · 1 comment

Comments

@richzw
Copy link

richzw commented Jul 22, 2012

When I make test, I get the following information and tobi hang here.

The "sys" module is now called "util". It should have a similar interface.
@richzw
Copy link
Author

richzw commented Jul 24, 2012

BTW, I am confused with the code in /lib/browser.js

Browser.prototype.request = function(method, path, options, fn, saveHistory){
var self = this
, server = this.server
, host = this.host || '127.0.0.1'
, headers = options.headers || {};

  // Ensure that server is ready to take connections
  if (server && !server.fd){
   (server.__deferred = server.__deferred || [])
  .push(arguments);
if (!server.__started) {
  server.listen(server.__port = ++startingPort, host, function(){
    process.nextTick(function(){
      server.__deferred.forEach(function(args){
        self.request.apply(self, args);
      });
    });
  });
  server.__started = true;
}
return;            // I am confused with this return in any case?? why?
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant