| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 88cd4cf commit 7b75cb9
14 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,7 @@ Buffer.prototype.htonl = function htonl() { | |||
| 44 | 44 | return this; | |
| 45 | 45 | }; | |
| 46 | 46 | ||
| 47 | - Buffer.prototype.htonll = function htonl() { | ||
| 47 | + Buffer.prototype.htonll = function htonll() { | ||
| 48 | 48 | if (this.length % 8 !== 0) | |
| 49 | 49 | throw new RangeError(); | |
| 50 | 50 | for (var i = 0; i < this.length; i += 8) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -159,7 +159,7 @@ function QueueItem(type, req) { | |||
| 159 | 159 | this.next = this; | |
| 160 | 160 | } | |
| 161 | 161 | ||
| 162 | - StreamWrap.prototype._enqueue = function enqueue(type, req) { | ||
| 162 | + StreamWrap.prototype._enqueue = function _enqueue(type, req) { | ||
| 163 | 163 | const item = new QueueItem(type, req); | |
| 164 | 164 | if (this._list === null) { | |
| 165 | 165 | this._list = item; | |
@@ -174,7 +174,7 @@ StreamWrap.prototype._enqueue = function enqueue(type, req) { | |||
| 174 | 174 | return item; | |
| 175 | 175 | }; | |
| 176 | 176 | ||
| 177 | - StreamWrap.prototype._dequeue = function dequeue(item) { | ||
| 177 | + StreamWrap.prototype._dequeue = function _dequeue(item) { | ||
| 178 | 178 | assert(item instanceof QueueItem); | |
| 179 | 179 | ||
| 180 | 180 | var next = item.next; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -117,7 +117,7 @@ function WritableState(options, stream) { | |||
| 117 | 117 | this.corkedRequestsFree = new CorkedRequest(this); | |
| 118 | 118 | } | |
| 119 | 119 | ||
| 120 | - WritableState.prototype.getBuffer = function writableStateGetBuffer() { | ||
| 120 | + WritableState.prototype.getBuffer = function getBuffer() { | ||
| 121 | 121 | var current = this.bufferedRequest; | |
| 122 | 122 | var out = []; | |
| 123 | 123 | while (current) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -139,7 +139,7 @@ CryptoStream.prototype.init = function init() { | |||
| 139 | 139 | }; | |
| 140 | 140 | ||
| 141 | 141 | ||
| 142 | - CryptoStream.prototype._write = function write(data, encoding, cb) { | ||
| 142 | + CryptoStream.prototype._write = function _write(data, encoding, cb) { | ||
| 143 | 143 | assert(this._pending === null); | |
| 144 | 144 | ||
| 145 | 145 | // Black-hole data | |
@@ -220,7 +220,7 @@ CryptoStream.prototype._write = function write(data, encoding, cb) { | |||
| 220 | 220 | }; | |
| 221 | 221 | ||
| 222 | 222 | ||
| 223 | - CryptoStream.prototype._writePending = function writePending() { | ||
| 223 | + CryptoStream.prototype._writePending = function _writePending() { | ||
| 224 | 224 | const data = this._pending; | |
| 225 | 225 | const encoding = this._pendingEncoding; | |
| 226 | 226 | const cb = this._pendingCallback; | |
@@ -232,7 +232,7 @@ CryptoStream.prototype._writePending = function writePending() { | |||
| 232 | 232 | }; | |
| 233 | 233 | ||
| 234 | 234 | ||
| 235 | - CryptoStream.prototype._read = function read(size) { | ||
| 235 | + CryptoStream.prototype._read = function _read(size) { | ||
| 236 | 236 | // XXX: EOF?! | |
| 237 | 237 | if (!this.pair.ssl) return this.push(null); | |
| 238 | 238 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -304,7 +304,7 @@ proxiedMethods.forEach(function(name) { | |||
| 304 | 304 | }; | |
| 305 | 305 | }); | |
| 306 | 306 | ||
| 307 | - tls_wrap.TLSWrap.prototype.close = function closeProxy(cb) { | ||
| 307 | + tls_wrap.TLSWrap.prototype.close = function close(cb) { | ||
| 308 | 308 | if (this.owner) | |
| 309 | 309 | this.owner.ssl = null; | |
| 310 | 310 | ||
@@ -340,10 +340,10 @@ TLSSocket.prototype._wrapHandle = function(wrap) { | |||
| 340 | 340 | res._secureContext = context; | |
| 341 | 341 | res.reading = handle.reading; | |
| 342 | 342 | Object.defineProperty(handle, 'reading', { | |
| 343 | - get: function readingGetter() { | ||
| 343 | + get: function get() { | ||
| 344 | 344 | return res.reading; | |
| 345 | 345 | }, | |
| 346 | - set: function readingSetter(value) { | ||
| 346 | + set: function set(value) { | ||
| 347 | 347 | res.reading = value; | |
| 348 | 348 | } | |
| 349 | 349 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ Domain.prototype._disposed = undefined; | |||
| 58 | 58 | ||
| 59 | 59 | ||
| 60 | 60 | // Called by process._fatalException in case an error was thrown. | |
| 61 | - Domain.prototype._errorHandler = function errorHandler(er) { | ||
| 61 | + Domain.prototype._errorHandler = function _errorHandler(er) { | ||
| 62 | 62 | var caught = false; | |
| 63 | 63 | ||
| 64 | 64 | // ignore errors on disposed domains. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -825,7 +825,7 @@ fs.truncate = function(path, len, callback) { | |||
| 825 | 825 | fs.open(path, 'r+', function(er, fd) { | |
| 826 | 826 | if (er) return callback(er); | |
| 827 | 827 | var req = new FSReqWrap(); | |
| 828 | - req.oncomplete = function ftruncateCb(er) { | ||
| 828 | + req.oncomplete = function oncomplete(er) { | ||
| 829 | 829 | fs.close(fd, function(er2) { | |
| 830 | 830 | callback(er || er2); | |
| 831 | 831 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -195,7 +195,7 @@ function Socket(options) { | |||
| 195 | 195 | } | |
| 196 | 196 | util.inherits(Socket, stream.Duplex); | |
| 197 | 197 | ||
| 198 | - Socket.prototype._unrefTimer = function unrefTimer() { | ||
| 198 | + Socket.prototype._unrefTimer = function _unrefTimer() { | ||
| 199 | 199 | for (var s = this; s !== null; s = s._parent) | |
| 200 | 200 | timers._unrefActive(s); | |
| 201 | 201 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -664,7 +664,7 @@ exports.start = function(prompt, | |||
| 664 | 664 | return repl; | |
| 665 | 665 | }; | |
| 666 | 666 | ||
| 667 | - REPLServer.prototype.close = function replClose() { | ||
| 667 | + REPLServer.prototype.close = function close() { | ||
| 668 | 668 | if (this.terminal && this._flushing && !this._closingOnFlush) { | |
| 669 | 669 | this._closingOnFlush = true; | |
| 670 | 670 | this.once('flushHistory', () => | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,7 +57,7 @@ assert.throws(function() { | |||
| 57 | 57 | // Argument types for combinatorics | |
| 58 | 58 | const a = []; | |
| 59 | 59 | const o = {}; | |
| 60 | - const c = function callback() {}; | ||
| 60 | + const c = function c() {}; | ||
| 61 | 61 | const s = 'string'; | |
| 62 | 62 | const u = undefined; | |
| 63 | 63 | const n = null; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments