Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Hi! I fixed some calls to "sys" for you! #2

Merged
merged 1 commit into from almost 2 years ago

3 participants

node-migrator-bot Ben Marvell Farrin Reid
node-migrator-bot

Hello easternbloc!

I am migrationBot, an open-source bot, and I'm here to help you migrate your codebase to node v0.8!

Did you know that the "sys" module throws an error if your program tries to require it in node v0.8? To help keep your code running, I automatically replaced var sys = require('sys') with var util = require('util').

If you'd like to know more about these changes in node.js, take a look at https://github.com/joyent/node/commit/1582cf#L1R51 and https://github.com/joyent/node/blob/1582cfebd6719b2d2373547994b3dca5c8c569c0/ChangeLog#L51 and http://blog.jit.su/introducing-blakmatrix-and-migratorbot .

As for myself, I was written by your friendly neighborhood node ninjas at Nodejitsu, and you can find them at #nodejitsu on irc.freenode.net or with http://webchat.jit.su .

Enjoy!

--migrationBot

Ben Marvell easternbloc merged commit 0df601b into from June 25, 2012
Ben Marvell easternbloc closed this June 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jun 23, 2012
Farrin Reid [fix] Changed require('sys') to require('util') for compatibility wit…
…h node v0.8
3925389
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/server.js
4  lib/server.js
... ...
@@ -1,6 +1,6 @@
1 1
 var net = require('net');
2 2
 var fs = require('fs');
3  
-var sys = require('sys');
  3
+var util = require('util');
4 4
 var crypto = require('crypto');
5 5
 var StompFrame = require('./frame').StompFrame;
6 6
 var StompFrameEmitter = require('./parser').StompFrameEmitter;
@@ -223,7 +223,7 @@ function SecureStompServer(port, credentials) {
223 223
   });
224 224
 }
225 225
 
226  
-sys.inherits(SecureStompServer, StompServer);
  226
+util.inherits(SecureStompServer, StompServer);
227 227
 
228 228
 StompServer.prototype.listen = function() {
229 229
   this.server.listen(this.port, 'localhost');
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.