Permalink
Browse files

[fix] Changed require('sys') to require('util') for compatibility wit…

…h node v0.8
  • Loading branch information...
1 parent a1e6d3d commit f42bc0ab41e924abbdcc55fbe600984697ab5644 @blakmatrix blakmatrix committed Jun 23, 2012
Showing with 6 additions and 6 deletions.
  1. +2 −2 benchmarks/compileBench.js
  2. +2 −2 benchmarks/jslitmus.js
  3. +2 −2 benchmarks/templatesBench.js
@@ -38,7 +38,7 @@
}
function runTests() {
- //var sys = require('sys');
+ //var util = require('util');
jslitmus = require('./jslitmus.js');
doU = require('./templating/doU.js');
doT = require('./templating/doT.js');
@@ -48,7 +48,7 @@
testsetup(snippet);
// Log the test results
jslitmus.on('complete', function(test) {
- //console.log(sys.inspect(process.memoryUsage()));
+ //console.log(util.inspect(process.memoryUsage()));
console.log(test.toString());
});
// 'all_complete' fires when all tests have finished.
View
@@ -60,7 +60,7 @@
var sys = null, querystring = null;
if (platform.name == 'node') {
- sys = require('sys');
+ util = require('util');
querystring = require('querystring');
}
@@ -72,7 +72,7 @@
if (typeof(console) != 'undefined') {
console.log(msg);
} else if (sys) {
- sys.log(msg);
+ util.log(msg);
}
}
@@ -67,7 +67,7 @@
}
function runTests() {
- //var sys = require('sys');
+ //var util = require('util');
jslitmus = require('./jslitmus.js');
doU = require('./templating/doU.js');
doT = require('./templating/doT.js');
@@ -76,7 +76,7 @@
testsetup(snippet);
// Log the test results
jslitmus.on('complete', function(test) {
- //console.log(sys.inspect(process.memoryUsage()));
+ //console.log(util.inspect(process.memoryUsage()));
console.log(test.toString());
});
// 'all_complete' fires when all tests have finished.

0 comments on commit f42bc0a

Please sign in to comment.