fixed erroneous version checks
Showing
1 changed file
with
2 additions
and
3 deletions
... | @@ -82,11 +82,10 @@ CasperError.prototype = Object.getPrototypeOf(new Error()); | ... | @@ -82,11 +82,10 @@ CasperError.prototype = Object.getPrototypeOf(new Error()); |
82 | // required version check | 82 | // required version check |
83 | if (version.major !== 1) { | 83 | if (version.major !== 1) { |
84 | return __die('CasperJS needs PhantomJS v1.x'); | 84 | return __die('CasperJS needs PhantomJS v1.x'); |
85 | } | 85 | } if (version.minor < 8) { |
86 | if (version.minor < 8) { | ||
87 | return __die('CasperJS needs at least PhantomJS v1.8 or later.'); | 86 | return __die('CasperJS needs at least PhantomJS v1.8 or later.'); |
88 | } | 87 | } |
89 | if (version.patch < 1) { | 88 | if (version.minor === 8 && version.patch < 1) { |
90 | return __die('CasperJS needs at least PhantomJS v1.8.1 or later.'); | 89 | return __die('CasperJS needs at least PhantomJS v1.8.1 or later.'); |
91 | } | 90 | } |
92 | })(phantom.version); | 91 | })(phantom.version); | ... | ... |
-
Please register or sign in to post a comment