Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

wants to merge 1 commit into from

2 participants

node-migrator-bot Farrin Reid

Hello pkrumins!

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 and and .

As for myself, I was written by your friendly neighborhood node ninjas at Nodejitsu, and you can find them at #nodejitsu on or with .



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 blakmatrix [fix] Changed require('sys') to require('util') for compatibility wit…
…h node v0.8
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. +2 2 lib/cart.js
4 lib/cart.js
... ... @@ -1,5 +1,5 @@
1 1 // inspired by nsession-store
2   -var sys = require('sys');
  2 +var util = require('util');
3 3 var ConnectStore = require('connect/middleware/session/store');
4 4 var Store = require('supermarket');
5 5
@@ -27,7 +27,7 @@ function Cart(options) {
27 27 });
28 28 };
29 29
30   -sys.inherits(Cart, ConnectStore);
  30 +util.inherits(Cart, ConnectStore);
31 31
32 32 Cart.prototype.get = function (hash, fn) {
33 33 this.db.get(hash, function (err, val) {

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.