Skip to content
This repository
Browse code

Merge pull request #333 from cGuille/master

Should fix #328
  • Loading branch information...
commit 6f0ed706a63acb27439d88018851a43f6abde86c 2 parents f2c4db4 + d47275e
Morteza Milani milani authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/bindings.js
4 lib/bindings.js
@@ -3,9 +3,9 @@ var path = require('path'),
3 3
4 4 var platform = process.platform,
5 5 arch = process.arch,
6   - version = parseFloat(process.version.slice(1));
  6 + versionValues = process.version.substr(1).split('.').map(function (item) { return parseInt(item, 10); });
7 7
8   -if (version < 0.8) {
  8 +if (versionValues[0] === 0 && versionValues[1] < 8) {
9 9 throw new Error("AppJS requires Node.js v0.8");
10 10 }
11 11

0 comments on commit 6f0ed70

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