Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

node 0.6 fixes

  • Loading branch information...
commit 8e338c613641c4e0a3f4130e4b3bdf018c712d23 1 parent 54cf583
@mranney mranney authored
Showing with 3 additions and 3 deletions.
  1. +0 −1  generate_commands.js
  2. +3 −2 lib/util.js
View
1  generate_commands.js
@@ -1,5 +1,4 @@
var http = require("http"),
- sys = require("sys"),
fs = require("fs");
function prettyCurrentTime() {
View
5 lib/util.js
@@ -1,6 +1,7 @@
-if (process.versions.node.match(/^0.3/)) {
+// Support for very old versions of node. At some point, we should abandon this.
+var minor = process.versions.node.split('.')[1];
+if (minor > 2) {
exports.util = require("util");
} else {
- // This module is called "sys" in 0.2.x
exports.util = require("sys");
}
Please sign in to comment.
Something went wrong with that request. Please try again.