Skip to content

Commit

Permalink
backport Fix version check #159
Browse files Browse the repository at this point in the history
  • Loading branch information
hthetiot committed Jul 20, 2018
1 parent ce5ccda commit 930754e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node/reader.js
Expand Up @@ -5,7 +5,7 @@ var Queue = require("q/queue");
var BufferStream = require("../buffer-stream");

var version = process.versions.node.split('.');
var supportsReadable = version[0] >= 0 && version[1] >= 10;
var supportsReadable = version[0] == 0 && version[1] >= 10 || version[0] > 0;

module.exports = Reader;
function Reader(_stream, charset, length) {
Expand Down
2 changes: 1 addition & 1 deletion node/writer.js
Expand Up @@ -13,7 +13,7 @@ var Q = require("q");
module.exports = Writer;

var version = process.versions.node.split('.');
var supportsFinish = version[0] >= 0 && version[1] >= 10;
var supportsFinish = version[0] == 0 && version[1] >= 10 || version[0] > 0;

function Writer(_stream, charset) {
var self = Object.create(Writer.prototype);
Expand Down

0 comments on commit 930754e

Please sign in to comment.