Skip to content

Commit

Permalink
Javascript-libraries have been fixed for JS-compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
XorePwn authored and XorePwn committed Sep 29, 2011
1 parent 005448b commit 7ae5e24
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/readline.js
Expand Up @@ -316,7 +316,7 @@ Interface.prototype._tabComplete = function() {

// If there is a common prefix to all matches, then apply that
// portion.
var f = completions.filter(function(e) { if (e) return e; });
var f = completions.filter(function(e) { if (e) return e; else return null; });
var prefix = commonPrefix(f);
if (prefix.length > completeOn.length) {
self._insertString(prefix.slice(completeOn.length));
Expand Down
1 change: 1 addition & 0 deletions lib/repl.js
Expand Up @@ -183,6 +183,7 @@ function REPLServer(prompt, stream, eval) {
} else {
finish(null, ret);
}
return null;
});

} else {
Expand Down
1 change: 1 addition & 0 deletions lib/tls.js
Expand Up @@ -916,6 +916,7 @@ Server.prototype.SNICallback = function(servername) {
ctx = elem[1];
return true;
}
return null;
});

return ctx;
Expand Down
14 changes: 7 additions & 7 deletions lib/zlib.js
Expand Up @@ -93,45 +93,45 @@ exports.createUnzip = function(o) {
// minimal 2-byte header
function Deflate(opts) {
if (!(this instanceof Deflate)) return new Deflate(opts);
Zlib.call(this, opts, binding.Deflate);
return Zlib.call(this, opts, binding.Deflate);
}

function Inflate(opts) {
if (!(this instanceof Inflate)) return new Inflate(opts);
Zlib.call(this, opts, binding.Inflate);
return Zlib.call(this, opts, binding.Inflate);
}



// gzip - bigger header, same deflate compression
function Gzip(opts) {
if (!(this instanceof Gzip)) return new Gzip(opts);
Zlib.call(this, opts, binding.Gzip);
return Zlib.call(this, opts, binding.Gzip);
}

function Gunzip(opts) {
if (!(this instanceof Gunzip)) return new Gunzip(opts);
Zlib.call(this, opts, binding.Gunzip);
return Zlib.call(this, opts, binding.Gunzip);
}



// raw - no header
function DeflateRaw(opts) {
if (!(this instanceof DeflateRaw)) return new DeflateRaw(opts);
Zlib.call(this, opts, binding.DeflateRaw);
return Zlib.call(this, opts, binding.DeflateRaw);
}

function InflateRaw(opts) {
if (!(this instanceof InflateRaw)) return new InflateRaw(opts);
Zlib.call(this, opts, binding.InflateRaw);
return Zlib.call(this, opts, binding.InflateRaw);
}


// auto-detect header.
function Unzip(opts) {
if (!(this instanceof Unzip)) return new Unzip(opts);
Zlib.call(this, opts, binding.Unzip);
return Zlib.call(this, opts, binding.Unzip);
}


Expand Down

0 comments on commit 7ae5e24

Please sign in to comment.