Permalink
Browse files

Merge pull request #333 from cGuille/master

Should fix #328
  • Loading branch information...
2 parents f2c4db4 + d47275e commit 6f0ed706a63acb27439d88018851a43f6abde86c @milani milani committed Apr 3, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bindings.js
View
@@ -3,9 +3,9 @@ var path = require('path'),
var platform = process.platform,
arch = process.arch,
- version = parseFloat(process.version.slice(1));
+ versionValues = process.version.substr(1).split('.').map(function (item) { return parseInt(item, 10); });
-if (version < 0.8) {
+if (versionValues[0] === 0 && versionValues[1] < 8) {
throw new Error("AppJS requires Node.js v0.8");
}

0 comments on commit 6f0ed70

Please sign in to comment.