Permalink
Browse files

doc,lib,test: capitalize comment sentences

This activates the eslint capitalize comment rule for comments
above 50 characters.

PR-URL: #24996
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
BridgeAR authored and MylesBorins committed Dec 10, 2018
1 parent 4513516 commit 2516e9cfd0c9d4f94945a0a16f8d89041aed51ee
Showing with 348 additions and 348 deletions.
  1. +2 −2 .eslintrc.js
  2. +1 −1 benchmark/_benchmark_progress.js
  3. +1 −1 benchmark/napi/function_args/index.js
  4. +1 −1 benchmark/napi/function_call/index.js
  5. +1 −1 benchmark/net/net-pipe.js
  6. +3 −3 benchmark/net/tcp-raw-c2s.js
  7. +3 −3 benchmark/net/tcp-raw-pipe.js
  8. +3 −3 benchmark/net/tcp-raw-s2c.js
  9. +1 −1 benchmark/tls/tls-connect.js
  10. +1 −1 doc/api/async_hooks.md
  11. +1 −1 doc/api/cluster.md
  12. +2 −2 doc/api/domain.md
  13. +1 −1 doc/api/esm.md
  14. +1 −1 doc/api/events.md
  15. +2 −2 doc/api/path.md
  16. +1 −1 doc/api/perf_hooks.md
  17. +7 −7 doc/api/stream.md
  18. +1 −1 doc/api/tracing.md
  19. +1 −1 doc/api/vm.md
  20. +1 −1 doc/api/zlib.md
  21. +1 −1 doc/guides/writing-and-running-benchmarks.md
  22. +1 −1 lib/_http_client.js
  23. +2 −2 lib/_http_common.js
  24. +1 −1 lib/_http_incoming.js
  25. +1 −1 lib/_http_server.js
  26. +4 −4 lib/_stream_duplex.js
  27. +19 −19 lib/_stream_readable.js
  28. +3 −3 lib/_stream_transform.js
  29. +12 −12 lib/_stream_writable.js
  30. +1 −1 lib/async_hooks.js
  31. +1 −1 lib/console.js
  32. +1 −1 lib/dgram.js
  33. +5 −5 lib/domain.js
  34. +1 −1 lib/events.js
  35. +6 −6 lib/fs.js
  36. +1 −1 lib/internal/bootstrap/node.js
  37. +2 −2 lib/internal/child_process.js
  38. +1 −1 lib/internal/console/constructor.js
  39. +6 −6 lib/internal/fs/streams.js
  40. +1 −1 lib/internal/http2/compat.js
  41. +2 −2 lib/internal/http2/core.js
  42. +3 −3 lib/internal/modules/cjs/loader.js
  43. +2 −2 lib/internal/modules/esm/loader.js
  44. +1 −1 lib/internal/process/next_tick.js
  45. +2 −2 lib/internal/process/stdio.js
  46. +1 −1 lib/internal/streams/destroy.js
  47. +1 −1 lib/internal/timers.js
  48. +5 −5 lib/net.js
  49. +5 −5 lib/readline.js
  50. +2 −2 lib/repl.js
  51. +1 −1 lib/timers.js
  52. +4 −4 lib/url.js
  53. +1 −1 test/async-hooks/test-callback-error.js
  54. +1 −1 test/async-hooks/test-getaddrinforeqwrap.js
  55. +1 −1 test/async-hooks/test-getnameinforeqwrap.js
  56. +1 −1 test/async-hooks/test-querywrap.js
  57. +1 −1 test/async-hooks/test-udpsendwrap.js
  58. +3 −3 test/async-hooks/verify-graph.js
  59. +2 −2 test/common/index.js
  60. +1 −1 test/js-native-api/test_constructor/test.js
  61. +1 −1 test/js-native-api/test_general/testInstanceOf.js
  62. +1 −1 test/js-native-api/test_general/testNapiRun.js
  63. +1 −1 test/parallel/test-async-wrap-tlssocket-asyncreset.js
  64. +8 −8 test/parallel/test-buffer-alloc.js
  65. +1 −1 test/parallel/test-buffer-bytelength.js
  66. +4 −4 test/parallel/test-buffer-copy.js
  67. +1 −1 test/parallel/test-buffer-includes.js
  68. +1 −1 test/parallel/test-buffer-indexof.js
  69. +2 −2 test/parallel/test-buffer-read.js
  70. +1 −1 test/parallel/test-buffer-slow.js
  71. +2 −2 test/parallel/test-buffer-tostring-range.js
  72. +3 −3 test/parallel/test-child-process-disconnect.js
  73. +1 −1 test/parallel/test-child-process-validate-stdio.js
  74. +2 −2 test/parallel/test-cli-syntax-piped-good.js
  75. +1 −1 test/parallel/test-cluster-disconnect.js
  76. +2 −2 test/parallel/test-cluster-eaccess.js
  77. +1 −1 test/parallel/test-cluster-worker-no-exit.js
  78. +1 −1 test/parallel/test-cluster-worker-wait-server-close.js
  79. +3 −3 test/parallel/test-console.js
  80. +2 −2 test/parallel/test-crypto-authenticated.js
  81. +1 −1 test/parallel/test-crypto-cipher-decipher.js
  82. +1 −1 test/parallel/test-crypto-from-binary.js
  83. +1 −1 test/parallel/test-crypto.js
  84. +1 −1 test/parallel/test-dgram-close-in-listening.js
  85. +1 −1 test/parallel/test-dgram-close-is-not-callback.js
  86. +1 −1 test/parallel/test-domain-ee-implicit.js
  87. +1 −1 test/parallel/test-domain-implicit-fs.js
  88. +1 −1 test/parallel/test-domain-multi.js
  89. +1 −1 test/parallel/test-fs-append-file-sync.js
  90. +8 −8 test/parallel/test-fs-append-file.js
  91. +1 −1 test/parallel/test-fs-non-number-arguments-throw.js
  92. +2 −2 test/parallel/test-fs-null-bytes.js
  93. +3 −3 test/parallel/test-fs-promises-file-handle-chmod.js
  94. +1 −1 test/parallel/test-fs-promises.js
  95. +1 −1 test/parallel/test-fs-realpath-on-substed-drive.js
  96. +2 −2 test/parallel/test-fs-realpath.js
  97. +1 −1 test/parallel/test-fs-utimes.js
  98. +2 −2 test/parallel/test-fs-whatwg-url.js
  99. +1 −1 test/parallel/test-handle-wrap-isrefed.js
  100. +1 −1 test/parallel/test-http-addrequest-localaddress.js
  101. +2 −2 test/parallel/test-http-agent-destroyed-socket.js
  102. +1 −1 test/parallel/test-http-client-pipe-end.js
  103. +1 −1 test/parallel/test-http-client-spurious-aborted.js
  104. +1 −1 test/parallel/test-http-client-timeout-agent.js
  105. +1 −1 test/parallel/test-http-connect-req-res.js
  106. +1 −1 test/parallel/test-http-outgoing-finish.js
  107. +1 −1 test/parallel/test-http-remove-header-stays-removed.js
  108. +1 −1 test/parallel/test-http-request-dont-override-options.js
  109. +1 −1 test/parallel/test-http-response-multiheaders.js
  110. +1 −1 test/parallel/test-http-server-multiheaders2.js
  111. +1 −1 test/parallel/test-http-server-response-standalone.js
  112. +1 −1 test/parallel/test-http-url.parse-basic.js
  113. +1 −1 test/parallel/test-http-wget.js
  114. +1 −1 test/parallel/test-http-write-callbacks.js
  115. +1 −1 test/parallel/test-http-zero-length-write.js
  116. +1 −1 test/parallel/test-http2-altsvc.js
  117. +2 −2 test/parallel/test-http2-client-set-priority.js
  118. +1 −1 test/parallel/test-http2-compat-expect-continue-check.js
  119. +1 −1 test/parallel/test-http2-compat-serverrequest-pause.js
  120. +1 −1 test/parallel/test-http2-compat-serverrequest-pipe.js
  121. +2 −2 test/parallel/test-http2-compat-socket.js
  122. +1 −1 test/parallel/test-http2-connect.js
  123. +1 −1 test/parallel/test-http2-dont-override.js
  124. +1 −1 test/parallel/test-http2-pipe.js
  125. +1 −1 test/parallel/test-http2-respond-file-304.js
  126. +1 −1 test/parallel/test-http2-timeouts.js
  127. +1 −1 test/parallel/test-https-agent-create-connection.js
  128. +1 −1 test/parallel/test-https-argument-of-creating.js
  129. +1 −1 test/parallel/test-https-client-get-url.js
  130. +1 −1 test/parallel/test-https-slow-headers.js
  131. +1 −1 test/parallel/test-https-strict.js
  132. +1 −1 test/parallel/test-https-truncate.js
  133. +2 −2 test/parallel/test-listen-fd-detached-inherit.js
  134. +1 −1 test/parallel/test-listen-fd-detached.js
  135. +1 −1 test/parallel/test-module-version.js
  136. +1 −1 test/parallel/test-net-connect-immediate-finish.js
  137. +1 −1 test/parallel/test-net-connect-options-allowhalfopen.js
  138. +1 −1 test/parallel/test-net-timeout-no-handle.js
  139. +1 −1 test/parallel/test-next-tick-intentional-starvation.js
  140. +1 −1 test/parallel/test-path.js
  141. +1 −1 test/parallel/test-preload.js
  142. +1 −1 test/parallel/test-process-emitwarning.js
  143. +1 −1 test/parallel/test-process-env-allowed-flags.js
  144. +1 −1 test/parallel/test-process-env.js
  145. +1 −1 test/parallel/test-promises-unhandled-rejections.js
  146. +1 −1 test/parallel/test-querystring.js
  147. +3 −3 test/parallel/test-readline-interface.js
  148. +2 −2 test/parallel/test-repl-tab-complete.js
  149. +1 −1 test/parallel/test-repl-underscore.js
  150. +1 −1 test/parallel/test-repl-use-global.js
  151. +4 −4 test/parallel/test-repl.js
  152. +1 −1 test/parallel/test-setproctitle.js
  153. +2 −2 test/parallel/test-stdio-pipe-stderr.js
  154. +1 −1 test/parallel/test-stream-big-push.js
  155. +1 −1 test/parallel/test-stream-duplex-destroy.js
  156. +2 −2 test/parallel/test-stream-pipe-after-end.js
  157. +1 −1 test/parallel/test-stream-readable-async-iterators.js
  158. +1 −1 test/parallel/test-stream-readable-destroy.js
  159. +1 −1 test/parallel/test-stream-readable-event.js
  160. +2 −2 test/parallel/test-stream-readable-flow-recursion.js
  161. +1 −1 test/parallel/test-stream-readable-hwm-0.js
  162. +4 −4 test/parallel/test-stream-readable-reading-readingMore.js
  163. +2 −2 test/parallel/test-stream-readable-resumeScheduled.js
  164. +1 −1 test/parallel/test-stream-unshift-empty-chunk.js
  165. +1 −1 test/parallel/test-stream-writable-destroy.js
  166. +1 −1 test/parallel/test-stream-writable-write-writev-finish.js
  167. +2 −2 test/parallel/test-stream2-basic.js
  168. +2 −2 test/parallel/test-stream2-transform.js
  169. +1 −1 test/parallel/test-stream3-cork-end.js
  170. +1 −1 test/parallel/test-stream3-pause-then-read.js
  171. +3 −3 test/parallel/test-stringbytes-external.js
  172. +1 −1 test/parallel/test-timers-immediate-unref.js
  173. +1 −1 test/parallel/test-timers-reset-process-domain-on-throw.js
  174. +1 −1 test/parallel/test-timers.js
  175. +1 −1 test/parallel/test-tls-client-mindhsize.js
  176. +1 −1 test/parallel/test-tls-socket-close.js
  177. +2 −2 test/parallel/test-url-format.js
  178. +1 −1 test/parallel/test-url-parse-format.js
  179. +3 −3 test/parallel/test-v8-coverage.js
  180. +1 −1 test/parallel/test-whatwg-url-custom-properties.js
  181. +1 −1 test/parallel/test-worker-uncaught-exception-async.js
  182. +1 −1 test/parallel/test-worker-uncaught-exception.js
  183. +1 −1 test/parallel/test-zlib-convenience-methods.js
  184. +1 −1 test/parallel/test-zlib-destroy-pipe.js
  185. +1 −1 test/parallel/test-zlib-flush-drain.js
  186. +1 −1 test/parallel/test-zlib-from-concatenated-gzip.js
  187. +1 −1 test/parallel/test-zlib-from-gzip-with-trailing-garbage.js
  188. +1 −1 test/parallel/test-zlib-from-string.js
  189. +3 −3 test/parallel/test-zlib-truncated.js
  190. +1 −1 test/parallel/test-zlib-write-after-flush.js
  191. +3 −3 test/parallel/test-zlib.js
  192. +1 −1 test/pseudo-tty/test-async-wrap-getasyncid-tty.js
  193. +1 −1 test/pseudo-tty/test-handle-wrap-isrefed-tty.js
  194. +1 −1 test/pummel/test-exec.js
  195. +1 −1 test/pummel/test-process-hrtime.js
  196. +1 −1 test/sequential/test-cli-syntax-file-not-found.js
  197. +1 −1 test/sequential/test-fs-watch.js
  198. +4 −4 test/sequential/test-module-loading.js
  199. +1 −1 test/sequential/test-next-tick-error-spin.js
  200. +1 −1 test/sequential/test-timers-set-interval-excludes-callback-duration.js
  201. +1 −1 tools/doc/html.js
@@ -60,9 +60,9 @@ module.exports = {
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'capitalized-comments': ['error', 'always', {
line: {
// Ignore all lines that have less characters than 62 and all lines that
// Ignore all lines that have less characters than 50 and all lines that
// start with something that looks like a variable name or code.
ignorePattern: '^.{0,62}$|^ [a-z]+ ?[0-9A-Z_.(/=:-]',
ignorePattern: '^.{0,50}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]',
ignoreInlineComments: true,
ignoreConsecutiveComments: true
},
@@ -40,7 +40,7 @@ class BenchmarkProgress {
this.completedConfig = 0;
// Total number of configurations for the current file
this.scheduledConfig = 0;
this.interval = 0; // result of setInterval for updating the elapsed time
this.interval; // Updates the elapsed time.
}

startQueue(index) {
@@ -1,4 +1,4 @@
// show the difference between calling a V8 binding C++ function
// Show the difference between calling a V8 binding C++ function
// relative to a comparable N-API C++ function,
// in various types/numbers of arguments.
// Reports n of calls per second.
@@ -1,4 +1,4 @@
// show the difference between calling a short js function
// Show the difference between calling a short js function
// relative to a comparable C++ function.
// Reports n of calls per second.
// Note that JS speed goes up, while cxx speed stays about the same.
@@ -48,7 +48,7 @@ function main({ dur, len, type }) {
socket.pipe(writer);

setTimeout(function() {
// multiply by 2 since we're sending it first one way
// Multiply by 2 since we're sending it first one way
// then then back again.
const bytes = writer.received * 2;
const gbits = (bytes * 8) / (1024 * 1024 * 1024);
@@ -47,12 +47,12 @@ function main({ dur, len, type }) {
}, dur * 1000);

clientHandle.onread = function(buffer) {
// we're not expecting to ever get an EOF from the client.
// just lots of data forever.
// We're not expecting to ever get an EOF from the client.
// Just lots of data forever.
if (!buffer)
fail('read');

// don't slice the buffer. the point of this is to isolate, not
// Don't slice the buffer. The point of this is to isolate, not
// simulate real traffic.
bytes += buffer.byteLength;
};
@@ -44,8 +44,8 @@ function main({ dur, len, type }) {
fail(err, 'connect');

clientHandle.onread = function(buffer) {
// we're not expecting to ever get an EOF from the client.
// just lots of data forever.
// We're not expecting to ever get an EOF from the client.
// Just lots of data forever.
if (!buffer)
fail('read');

@@ -105,7 +105,7 @@ function main({ dur, len, type }) {
clientHandle.readStart();

setTimeout(function() {
// multiply by 2 since we're sending it first one way
// Multiply by 2 since we're sending it first one way
// then then back again.
bench.end(2 * (bytes * 8) / (1024 * 1024 * 1024));
process.exit(0);
@@ -110,12 +110,12 @@ function main({ dur, len, type }) {
connectReq.oncomplete = function() {
var bytes = 0;
clientHandle.onread = function(buffer) {
// we're not expecting to ever get an EOF from the client.
// just lots of data forever.
// We're not expecting to ever get an EOF from the client.
// Just lots of data forever.
if (!buffer)
fail('read');

// don't slice the buffer. the point of this is to isolate, not
// Don't slice the buffer. The point of this is to isolate, not
// simulate real traffic.
bytes += buffer.byteLength;
};
@@ -59,7 +59,7 @@ function makeConnection() {

function done() {
running = false;
// it's only an established connection if they both saw it.
// It's only an established connection if they both saw it.
// because we destroy the server somewhat abruptly, these
// don't always match. Generally, serverConn will be
// the smaller number, but take the min just to be sure.
@@ -69,7 +69,7 @@ function before(asyncId) { }
// After is called just after the resource's callback has finished.
function after(asyncId) { }
// destroy is called when an AsyncWrap instance is destroyed.
// Destroy is called when an AsyncWrap instance is destroyed.
function destroy(asyncId) { }
// promiseResolve is called only for promise resources, when the
@@ -322,7 +322,7 @@ if (cluster.isMaster) {
process.on('message', (msg) => {
if (msg === 'shutdown') {
// initiate graceful close of any connections to server
// Initiate graceful close of any connections to server
}
});
}
@@ -248,7 +248,7 @@ const serverDomain = domain.create();
serverDomain.run(() => {
// server is created in the scope of serverDomain
http.createServer((req, res) => {
// req and res are also created in the scope of serverDomain
// Req and res are also created in the scope of serverDomain
// however, we'd prefer to have a separate domain for each request.
// create it first thing, and add req and res to it.
const reqd = domain.create();
@@ -316,7 +316,7 @@ const d = domain.create();
function readSomeFile(filename, cb) {
fs.readFile(filename, 'utf8', d.bind((er, data) => {
// if this throws, it will also be passed to the domain
// If this throws, it will also be passed to the domain
return cb(er, data ? JSON.parse(data) : null);
}));
}
@@ -242,7 +242,7 @@ export async function dynamicInstantiate(url) {
return {
exports: ['customExportName'],
execute: (exports) => {
// get and set functions provided for pre-allocated export names
// Get and set functions provided for pre-allocated export names
exports.customExportName.set('value');
}
};
@@ -641,7 +641,7 @@ const logFnWrapper = listeners[0];
// Logs "log once" to the console and does not unbind the `once` event
logFnWrapper.listener();
// logs "log once" to the console and removes the listener
// Logs "log once" to the console and removes the listener
logFnWrapper();
emitter.on('log', () => console.log('log persistently'));
@@ -299,7 +299,7 @@ path.join('/foo', 'bar', 'baz/asdf', 'quux', '..');
// Returns: '/foo/bar/baz/asdf'
path.join('foo', {}, 'bar');
// throws 'TypeError: Path must be a string. Received {}'
// Throws 'TypeError: Path must be a string. Received {}'
```

A [`TypeError`][] is thrown if any of the path segments is not a string.
@@ -495,7 +495,7 @@ path.resolve('/foo/bar', '/tmp/file/');
// Returns: '/tmp/file'
path.resolve('wwwroot', 'static_files/png/', '../gif/image.gif');
// if the current working directory is /home/myself/node,
// If the current working directory is /home/myself/node,
// this returns '/home/myself/node/wwwroot/static_files/gif/image.gif'
```

@@ -331,7 +331,7 @@ const {
} = require('perf_hooks');
const obs = new PerformanceObserver((list, observer) => {
// called three times synchronously. list contains one item
// Called three times synchronously. list contains one item
});
obs.observe({ entryTypes: ['mark'] });
@@ -118,8 +118,8 @@ that implements an HTTP server:
const http = require('http');
const server = http.createServer((req, res) => {
// req is an http.IncomingMessage, which is a Readable Stream
// res is an http.ServerResponse, which is a Writable Stream
// `req` is an http.IncomingMessage, which is a Readable Stream
// `res` is an http.ServerResponse, which is a Writable Stream
let body = '';
// Get the data as utf8 strings.
@@ -1195,7 +1195,7 @@ function parseHeader(stream, callback) {
stream.removeListener('readable', onReadable);
if (buf.length)
stream.unshift(buf);
// now the body of the message can be read from the stream.
// Now the body of the message can be read from the stream.
callback(null, header, stream);
} else {
// still reading the header.
@@ -1930,19 +1930,19 @@ pause/resume mechanism, and a data callback, the low-level source can be wrapped
by the custom `Readable` instance:

```js
// source is an object with readStop() and readStart() methods,
// `_source` is an object with readStop() and readStart() methods,
// and an `ondata` member that gets called when it has data, and
// an `onend` member that gets called when the data is over.
class SourceWrapper extends Readable {
constructor(options) {
super(options);
this._source = getLowlevelSourceObject();
this._source = getLowLevelSourceObject();
// Every time there's data, push it into the internal buffer.
this._source.ondata = (chunk) => {
// if push() returns false, then stop reading from source
// If push() returns false, then stop reading from source
if (!this.push(chunk))
this._source.readStop();
};
@@ -2391,7 +2391,7 @@ For example, consider the following code:
// WARNING! BROKEN!
net.createServer((socket) => {
// we add an 'end' listener, but never consume the data
// We add an 'end' listener, but never consume the data
socket.on('end', () => {
// It will never get here.
socket.end('The message was received but was not processed.\n');
@@ -133,7 +133,7 @@ t2.enable();
// Prints 'node,node.perf,v8'
console.log(trace_events.getEnabledCategories());
t2.disable(); // will only disable emission of the 'node.perf' category
t2.disable(); // Will only disable emission of the 'node.perf' category
// Prints 'node,v8'
console.log(trace_events.getEnabledCategories());
@@ -33,7 +33,7 @@ const sandbox = { x: 2 };
vm.createContext(sandbox); // Contextify the sandbox.
const code = 'x += 40; var y = 17;';
// x and y are global variables in the sandboxed environment.
// `x` and `y` are global variables in the sandboxed environment.
// Initially, x has the value 2 because that is the value of sandbox.x.
vm.runInContext(code, sandbox);
@@ -81,7 +81,7 @@ request.on('response', (response) => {
const output = fs.createWriteStream('example.com_index.html');
switch (response.headers['content-encoding']) {
// or, just use zlib.createUnzip() to handle both cases
// Or, just use zlib.createUnzip() to handle both cases
case 'gzip':
response.pipe(zlib.createGunzip()).pipe(output);
break;
@@ -397,7 +397,7 @@ const options = {
flags: ['--zero-fill-buffers']
};
// main and configs are required, options is optional.
// `main` and `configs` are required, `options` is optional.
const bench = common.createBenchmark(main, configs, options);
// Note that any code outside main will be run twice,
@@ -556,7 +556,7 @@ function parserOnIncomingClient(res, shouldKeepAlive) {
req.res = res;
res.req = req;

// add our listener first, so that we guarantee socket cleanup
// Add our listener first, so that we guarantee socket cleanup
res.on('end', responseOnEnd);
req.on('prefinish', requestOnPrefinish);
var handled = req.emit('response', res);
@@ -116,11 +116,11 @@ function parserOnHeadersComplete(versionMajor, versionMinor, headers, method,
function parserOnBody(b, start, len) {
const stream = this.incoming;

// if the stream has already been removed, then drop it.
// If the stream has already been removed, then drop it.
if (stream === null)
return;

// pretend this was the result of a stream._read call.
// Pretend this was the result of a stream._read call.
if (len > 0 && !stream._dumped) {
var slice = b.slice(start, start + len);
var ret = stream.push(slice);
@@ -68,7 +68,7 @@ function IncomingMessage(socket) {
this.client = socket;

this._consuming = false;
// flag for when we decide that this message cannot possibly be
// Flag for when we decide that this message cannot possibly be
// read by the user, so there's no point continuing to handle it.
this._dumped = false;
}
@@ -570,7 +570,7 @@ function resOnFinish(req, res, socket, state, server) {

state.incoming.shift();

// if the user never called req.read(), and didn't pipe() or
// If the user never called req.read(), and didn't pipe() or
// .resume() or .on('data'), then we call req._dump() so that the
// bytes will be pulled off the wire.
if (!req._consuming && !req._readableState.resumeScheduled)
@@ -67,7 +67,7 @@ function Duplex(options) {
}

Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
// making it explicit this property is not enumerable
// Making it explicit this property is not enumerable
// because otherwise some prototype manipulation in
// userland will fail
enumerable: false,
@@ -77,7 +77,7 @@ Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
});

Object.defineProperty(Duplex.prototype, 'writableBuffer', {
// making it explicit this property is not enumerable
// Making it explicit this property is not enumerable
// because otherwise some prototype manipulation in
// userland will fail
enumerable: false,
@@ -87,7 +87,7 @@ Object.defineProperty(Duplex.prototype, 'writableBuffer', {
});

Object.defineProperty(Duplex.prototype, 'writableLength', {
// making it explicit this property is not enumerable
// Making it explicit this property is not enumerable
// because otherwise some prototype manipulation in
// userland will fail
enumerable: false,
@@ -112,7 +112,7 @@ function onEndNT(self) {
}

Object.defineProperty(Duplex.prototype, 'destroyed', {
// making it explicit this property is not enumerable
// Making it explicit this property is not enumerable
// because otherwise some prototype manipulation in
// userland will fail
enumerable: false,
Oops, something went wrong.

0 comments on commit 2516e9c

Please sign in to comment.