Skip to content
This repository
Browse code

node 0.6 fixes

  • Loading branch information...
commit 8e338c613641c4e0a3f4130e4b3bdf018c712d23 1 parent 54cf583
Matt Ranney authored November 10, 2011
1  generate_commands.js
... ...
@@ -1,5 +1,4 @@
1 1
 var http = require("http"),
2  
-    sys = require("sys"),
3 2
     fs = require("fs");
4 3
 
5 4
 function prettyCurrentTime() {
5  lib/util.js
... ...
@@ -1,6 +1,7 @@
1  
-if (process.versions.node.match(/^0.3/)) {
  1
+// Support for very old versions of node.  At some point, we should abandon this.
  2
+var minor = process.versions.node.split('.')[1];
  3
+if (minor > 2) {
2 4
     exports.util = require("util");
3 5
 } else {
4  
-    // This module is called "sys" in 0.2.x
5 6
     exports.util = require("sys");
6 7
 }

0 notes on commit 8e338c6

Please sign in to comment.
Something went wrong with that request. Please try again.