Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v11.x backport] http: reduce usage of public util #26650

Closed
wants to merge 91 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
4796c7c
stream: make sure 'readable' is emitted before ending the stream
mcollina Feb 11, 2019
0c4e019
src: remove unused variable in node_http2.cc
gengjiawen Mar 2, 2019
93ef1e3
http: check for existance in resetHeadersTimeoutOnReqEnd
mcollina Mar 2, 2019
44ef6b0
src: fix build when NODE_USE_V8_PLATFORM is not defined
nitsakh Mar 1, 2019
f74d5c8
doc: fix the example implementation of MemoryRetainer
joyeecheung Feb 22, 2019
fc6023a
doc: edit deprecation section of Collaborator Guide
Trott Mar 4, 2019
3570c77
test: relax timer check in test-report-uv-handles.js
richardlau Mar 4, 2019
ff1958d
lib: migrate process.binding to internalBinding
BeniCheni Dec 11, 2018
09c83d8
crypto: add KeyObject.asymmetricKeySize
paroga Mar 2, 2019
3e6b95e
src: use the config binding to carry --no-browser-globals
joyeecheung Feb 21, 2019
b435913
src: fix wrong enum reference in node.cc
gengjiawen Mar 4, 2019
21ca939
src: remove unused function in cares_wrap.cc
gengjiawen Mar 4, 2019
4ff5cfa
src: remove redundant cast in string_search.h
gengjiawen Mar 4, 2019
b3ecaaa
tools: replace var to let/const
Mar 2, 2019
a8331fa
tools: add no-var lint rule for tools directory
Mar 6, 2019
3dd7084
build,win: simplify new `msbuild_arg` option
refack Mar 4, 2019
1351f6e
build: indicate that configure has done something
richardlau Mar 4, 2019
7d8edec
buffer: do not affect memory after target for utf16 write
addaleax Mar 4, 2019
4b1c1dc
doc: add missing https Agent maxCachedSessions
nicolas-moteau Mar 4, 2019
bd7e243
doc: standardize on End-of-Life capitalization
Trott Mar 4, 2019
aa80137
tools: update remark-preset-lint-node to 1.5.0
Trott Mar 4, 2019
2d7b629
src: remove redundant call in inspector_io.cc
gengjiawen Mar 4, 2019
539a9c0
src: make parameter name const reference in method TriggerNodeReport
gengjiawen Mar 2, 2019
5d2c522
http: remove unused variable in _http_server.js
gengjiawen Mar 3, 2019
24b9ae1
test: fix tests so they work in worker threads
richardlau Mar 5, 2019
8e94cb2
child_process: fire close event from stdio
koh110 Sep 17, 2018
8c087d2
test: remove usage of `process.binding()`
addaleax Feb 25, 2019
ab1327f
crypto: simplify GetPublicOrPrivateKeyFromJs
tniessen Mar 5, 2019
d1c225f
test: refactor test/report/test-report-signal.js
cjihrig Mar 5, 2019
8c90fe1
Revert "build: silence cpp lint by default"
refack Feb 28, 2019
f37e7bf
tools: fix test.py --shell
hashseed Mar 5, 2019
8439e07
src: remove redundant cast in util-inl.h
gengjiawen Mar 3, 2019
20fdf89
repl: add replDefaults to customize the writer
BridgeAR Jan 19, 2019
cafb332
tools: update dmn to 2.2.1 in update scripts
Trott Mar 6, 2019
dc04dc0
tools: use dmn@2.2.1 to remove unneeded files
Trott Mar 6, 2019
3b06d29
src: remove templating from StreamBase
maclover7 Dec 18, 2018
f0a144e
src: cleanup in all return paths in node::Start
gireeshpunathil Mar 6, 2019
bab6c63
doc: add caveat and tradeoff example to readline
vsemozhetbyt Mar 6, 2019
5de8ed8
doc: add guidance on console output in tests
sam-github Mar 5, 2019
4a913a2
test: bump test-bootstrap-modules.js limit
joyeecheung Mar 8, 2019
cae30d9
doc: edit "Involving the TSC"
Trott Mar 6, 2019
f7ecc94
http: improve for-loop readability in _http_outgoing.js
gengjiawen Mar 3, 2019
14e247e
n-api: improve performance creating strings
anthony-tuininga Mar 4, 2019
28b500f
src: merge debug-only `SealHandleScope`s
addaleax Mar 5, 2019
6a4bb9e
src: delete unused variable in env.h
gengjiawen Mar 5, 2019
cdf0e09
src: delete unused method SetTemplateMethodNoSideEffect
gengjiawen Mar 5, 2019
926649e
src: delete unused method SetTemplateMethod
gengjiawen Mar 5, 2019
8f0a924
tools: update `node-lint-md-cli-rollup` version 2
refack Mar 4, 2019
bda41d8
tools: update generated lint-md.js
refack Mar 4, 2019
feb3a84
src: guard against calling `Init()` multiple times
addaleax Mar 5, 2019
a2511f8
doc: fix nits in writing-tests.md
vsemozhetbyt Mar 9, 2019
ce260c2
test: de-flake test-dns-idna2008.js
refack Mar 6, 2019
7c8bb94
doc: update partner communities link in releases.md
BethGriggs Mar 6, 2019
2b57c65
benchmark,doc,lib,test: capitalize comments
BridgeAR Mar 7, 2019
06c5b84
tools: update capitalized-comments rule
BridgeAR Mar 7, 2019
96d3705
test: rewrite ocsp test to run in parallel
sam-github Mar 5, 2019
f33163a
src: apply clang-tidy various improvement
gengjiawen Mar 6, 2019
0c49ffb
doc: remove tsc-review
Trott Mar 8, 2019
cc32461
test: mark `test-worker-prof` as Flaky on ARM
refack Mar 10, 2019
7dd213f
tools: update to mdast-util-to-hast v3.0.2
rubys Aug 5, 2018
0ba661e
doc: add decode() & encode() methods into querystring.md
ZYSzys Feb 14, 2019
f91dab6
doc: document fake ENOTFOUND as a system error
cjihrig Mar 7, 2019
2eb6a40
report: fix stdout/stderr output formatting
cjihrig Mar 8, 2019
b048a38
test: cover stdout/stderr usage in triggerReport()
cjihrig Mar 8, 2019
70343d0
test: cover triggerReport() failure case
cjihrig Mar 8, 2019
9d77d47
report: rename triggerReport() to writeReport()
cjihrig Mar 8, 2019
2c0c42d
tools: update ESLint to 5.15.1
cjihrig Mar 10, 2019
119adf2
doc: edit Landing Pull Requests
Trott Mar 8, 2019
4a72eb3
doc: add inspector API example for heapdump
sam-github Mar 7, 2019
ca9bb1f
lib,src: remove usage of _externalStream
addaleax Mar 8, 2019
8d9c3fa
worker: remove `ERR_CLOSED_MESSAGE_PORT`
addaleax Mar 7, 2019
8f6b4a9
doc: document diverging MessagePort.onmessage handling
addaleax Mar 10, 2019
9af6631
process: add --pending-deprecation to `process.binding()`
addaleax Feb 25, 2019
d599ada
doc: add version for http.createServer() options addition
benswinburne Dec 12, 2018
1a0602a
crypto: check for invalid chacha20-poly1305 IVs
sam-github Mar 7, 2019
98eb711
doc: edit "Using git-node" section of Guide
Trott Mar 11, 2019
6d90c49
src: rename Init and Start overloads to something more distinctive
joyeecheung Mar 7, 2019
300ad04
test: mark test-worker-prof as flake on all platforms
refack Mar 11, 2019
066fe5a
build: enable v8's siphash for hash seed creation
rvagg Mar 1, 2019
1dd956a
deps,tools: include SipHash in LICENSE
rvagg Mar 1, 2019
b592c2f
test: fix compiler warning in test_string.c
danbev Mar 9, 2019
0ed2a01
src: remove unused variables
cjihrig Mar 11, 2019
8cb7d4b
worker: release native Worker object earlier
addaleax Mar 9, 2019
f2ebf36
url: require encodeStr from internal/querystring
ZYSzys Mar 9, 2019
c43e5b3
lib: import TextEncoder and TextDecoder from `internal/encoding`
joyeecheung Mar 9, 2019
71d0a8a
crypto: fix EdDSA support for KeyObject
mscdex Feb 26, 2019
f03498c
test: fix syntax error in test-dns-idna2008.js when failing
refack Mar 10, 2019
c6536b4
process: make Symbol.toStringTag writable
BridgeAR Mar 7, 2019
348d9a6
http2: `Http2ServerResponse.end()` should always return self
ronag Nov 13, 2018
b581bb0
test: fix test by removing node-inspect/lib/_inspect
BridgeAR Mar 12, 2019
cd77811
http: reduce usage of public util
ZYSzys Mar 9, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 40 and all lines that
// Ignore all lines that have less characters than 30 and all lines that
// start with something that looks like a variable name or code.
ignorePattern: '^.{0,40}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
ignorePattern: '^.{0,30}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std',
ignoreInlineComments: true,
ignoreConsecutiveComments: true,
},
Expand Down
2 changes: 1 addition & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ There are three support tiers:
For production applications, run Node.js on supported platforms only.

Node.js does not support a platform version if a vendor has expired support
for it. In other words, Node.js does not support running on End-of-life (EoL)
for it. In other words, Node.js does not support running on End-of-Life (EoL)
platforms. This is true regardless of entries in the table below.

| System | Support type | Version | Architectures | Notes |
Expand Down
101 changes: 47 additions & 54 deletions COLLABORATOR_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ in the placeholder's `README`.
For pull requests introducing new core modules:

* Allow at least one week for review.
* Label with the `tsc-review` label.
* Land only after sign-off from at least two TSC members.
* Land with a [Stability Index][] of Experimental. The module must remain
Experimental until a semver-major release.
Expand Down Expand Up @@ -334,7 +333,7 @@ documentation must state the deprecation status.
* Emits a warning at runtime on first use of the deprecated API.
* If used with the [`--throw-deprecation`][] flag, will throw a runtime error.

* End-of-life
* End-of-Life
* The API is no longer subject to the semantic versioning rules.
* Backward-incompatible changes including complete removal of such APIs may
occur at any time.
Expand All @@ -343,89 +342,85 @@ Apply the `notable change` label to all pull requests that introduce
Documentation-Only Deprecations. Such deprecations have no impact on code
execution. Thus, they are not breaking changes (`semver-major`).

Runtime Deprecations and End-of-life APIs (internal or public) are breaking
Runtime Deprecations and End-of-Life APIs (internal or public) are breaking
changes (`semver-major`). The TSC may make exceptions, deciding that one of
these deprecations is not a breaking change.

All deprecations receive a unique and immutable identifier. Documentation,
warnings, and errors use the identifier when referring to the deprecation. The
documentation for the assigned deprecation identifier must always remain in the
API documentation. This is true even if the deprecation is no longer in use (for
documentation for the deprecation identifier must always remain in the API
documentation. This is true even if the deprecation is no longer in use (for
example, due to removal of an End-of-Life deprecated API).

<a id="deprecation-cycle"></a>
A _Deprecation cycle_ is a major release during which an API has been in one of
A _deprecation cycle_ is a major release during which an API has been in one of
the three Deprecation levels. Documentation-Only Deprecations may land in a
minor release but must not be upgraded to a Runtime Deprecation until the next
major release.
minor release. They may not change to a Runtime Deprecation until the next major
release.

No API can be moved to End-of-life without first having gone through a
Runtime Deprecation cycle. However, there is no requirement that deprecated
code must progress ultimately to *End-of-Life*. Documentation-only and runtime
deprecations may remain indefinitely.
No API can change to End-of-Life without going through a Runtime Deprecation
cycle. There is no rule that deprecated code must progress to End-of-Life.
Documentation-Only and Runtime Deprecations may remain in place for an unlimited
duration.

Communicate pending deprecations and associated mitigations with the ecosystem
as soon as possible (preferably before the pull request adding the deprecation
lands on the master branch). Use the `notable-change` label on all pull requests
that add a new deprecation or move an existing deprecation to a new deprecation
level.
as soon as possible. If possible, do it before the pull request adding the
deprecation lands on the master branch.

Use the `notable-change` label on pull requests that add or change the
deprecation level of an API.

### Involving the TSC

Collaborators may opt to elevate pull requests or issues to the [TSC][].
This should be done where a pull request:
Do this if a pull request or issue:

- is labeled `semver-major`, or
- has a significant impact on the codebase, or
- is inherently controversial, or
- has failed to reach consensus amongst the Collaborators who are
actively participating in the discussion.
- is controversial, or
- is at an impasse among Collaborators who are participating in the discussion.

Assign the `tsc-review` label or @-mention the
`@nodejs/tsc` GitHub team if you want to elevate an issue to the [TSC][].
Do not use the GitHub UI on the right-hand side to assign to
@-mention the `@nodejs/tsc` GitHub team if you want to elevate an issue to the
[TSC][]. Do not use the GitHub UI on the right-hand side to assign to
`@nodejs/tsc` or request a review from `@nodejs/tsc`.

The TSC should serve as the final arbiter where required.

## Landing Pull Requests

1. Avoid landing PRs that are assigned to someone else. Authors who wish to land
their own PRs will self-assign them, or delegate to someone else. If in
doubt, ask the assignee whether it is okay to land.
1. Avoid landing pull requests that have someone else as an assignee. Authors
who wish to land their own pull requests will self-assign them. Sometimes, an
author will delegate to someone else. If in doubt, ask the assignee whether
it is okay to land.
1. Never use GitHub's green ["Merge Pull Request"][] button. Reasons for not
using the web interface button:
* The "Create a merge commit" method will add an unnecessary merge commit.
* The "Squash and merge" method will add metadata (the PR #) to the commit
title. If more than one author has contributed to the PR, squashing will
only keep the most recent author.
* The "Squash and merge" method will add metadata (the pull request #) to the
commit title. If more than one author contributes to the pull request,
squashing only keeps one author.
* The "Rebase and merge" method has no way of adding metadata to the commit.
1. Make sure the CI is done and the result is green. If the CI is not green,
check for flaky tests and infrastructure failures. Please check if those were
already reported in the appropriate repository ([node][flaky tests] and
[build](https://github.com/nodejs/build/issues)) or not and open new issues
in case they are not. If no CI was run or the run is outdated because code
was pushed after the last run, please first start a new CI and wait for the
result. If no CI is required, please leave a comment in case none is already
present.
1. Review the commit message to ensure that it adheres to the guidelines
outlined in the [contributing][] guide.
1. Make sure CI is complete and green. If the CI is not green, check for
unreliable tests and infrastructure failures. If there are not corresponding
issues in the [node][unreliable tests] or
[build](https://github.com/nodejs/build/issues) repositories, open new
issues. Run a new CI any time someone pushes new code to the pull request.
1. Check that the commit message adheres to [commit message guidelines][].
1. Add all necessary [metadata](#metadata) to commit messages before landing. If
you are unsure exactly how to format the commit messages, use the commit log
as a reference. See [this commit][commit-example] as an example.

For PRs from first-time contributors, be [welcoming](#welcoming-first-time-contributors).
Also, verify that their git settings are to their liking.
For pull requests from first-time contributors, be
[welcoming](#welcoming-first-time-contributors). Also, verify that their git
settings are to their liking.

All commits should be self-contained, meaning every commit should pass all
tests. This makes it much easier when bisecting to find a breaking change.

### Using `git-node`

In most cases, using [the `git-node` command][git-node] of [`node-core-utils`][]
should be enough to help you land a Pull Request. If you discover a problem when
using this tool, please file an issue
[to the issue tracker][node-core-utils-issues].
should be enough to land a pull request. If you discover a problem when using
this tool, please file an issue [to the issue tracker][node-core-utils-issues].

Quick example:

Expand All @@ -434,12 +429,11 @@ $ npm install -g node-core-utils
$ git node land $PRID
```

If it's the first time you have used `node-core-utils`, you will be prompted
to type the password of your GitHub account and the two-factor authentication
code in the console so the tool can create the GitHub access token for you.
If you do not want to do that, follow
[the `node-core-utils` guide][node-core-utils-credentials]
to set up your credentials manually.
To use `node-core-utils`, you will need a GitHub access token. If you do not
have one, `node-core-utils` will create one for you the first time you use it.
To do this, it will ask for your GitHub password and two-factor authentication
code. If you wish to create the token yourself in advance, see
[the `node-core-utils` guide][node-core-utils-credentials].

### Technical HOWTO

Expand Down Expand Up @@ -552,8 +546,7 @@ commit message for that commit. This is a good moment to fix incorrect
commit logs, ensure that they are properly formatted, and add
`Reviewed-By` lines.

* The commit message text must conform to the
[commit message guidelines](./doc/guides/contributing/pull-requests.md#commit-message-guidelines).
* The commit message text must conform to the [commit message guidelines][].

<a name="metadata"></a>
* Modify the original commit message to include additional metadata regarding
Expand Down Expand Up @@ -795,12 +788,12 @@ If you cannot find who to cc for a file, `git shortlog -n -s <file>` may help.
[`--throw-deprecation`]: doc/api/cli.md#--throw-deprecation
[`node-core-utils`]: https://github.com/nodejs/node-core-utils
[backporting guide]: doc/guides/backporting-to-release-lines.md
[contributing]: ./doc/guides/contributing/pull-requests.md#commit-message-guidelines
[commit message guidelines]: ./doc/guides/contributing/pull-requests.md#commit-message-guidelines
[commit-example]: https://github.com/nodejs/node/commit/b636ba8186
[flaky tests]: https://github.com/nodejs/node/issues?q=is%3Aopen+is%3Aissue+label%3A%22CI+%2F+flaky+test%22y
[git-node]: https://github.com/nodejs/node-core-utils/blob/master/docs/git-node.md
[git-node-metadata]: https://github.com/nodejs/node-core-utils/blob/master/docs/git-node.md#git-node-metadata
[git-username]: https://help.github.com/articles/setting-your-username-in-git/
[git-email]: https://help.github.com/articles/setting-your-commit-email-address-in-git/
[node-core-utils-credentials]: https://github.com/nodejs/node-core-utils#setting-up-credentials
[node-core-utils-issues]: https://github.com/nodejs/node-core-utils/issues
[unreliable tests]: https://github.com/nodejs/node/issues?q=is%3Aopen+is%3Aissue+label%3A%22CI+%2F+flaky+test%22
12 changes: 3 additions & 9 deletions GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ be accepted unless:
This should only happen if disagreements between Collaborators cannot be
resolved through discussion.

Collaborators may opt to elevate significant or controversial modifications to
the TSC by assigning the `tsc-review` label to a pull request or issue. The
TSC should serve as the final arbiter where required.

See:

* [Current list of Collaborators](./README.md#current-project-team-members)
Expand Down Expand Up @@ -105,11 +101,9 @@ The intention of the agenda is not to approve or review all patches.
That should happen continuously on GitHub and be handled by the larger
group of Collaborators.

Any community member or contributor can ask that something be reviewed
by the TSC by logging a GitHub issue. Any Collaborator, TSC member, or the
meeting chair can bring the issue to the TSC's attention by applying the
`tsc-review` label. If consensus-seeking among TSC members fails for a
particular issue, it may be added to the TSC meeting agenda by adding the
Any community member or contributor can ask that something be reviewed by the
TSC by logging a GitHub issue. If consensus-seeking among TSC members fails for
a particular issue, it may be added to the TSC meeting agenda by adding the
`tsc-agenda` label.

Prior to each TSC meeting, the meeting chair will share the agenda with
Expand Down
11 changes: 11 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,17 @@ The externally maintained libraries used by Node.js are:
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""

- SipHash, located at deps/v8/src/third_party/siphash, is licensed as follows:
"""
SipHash reference C implementation

Copyright (c) 2016 Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com>

To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the public
domain worldwide. This software is distributed without any warranty.
"""

- zlib, located at deps/zlib, is licensed as follows:
"""
zlib.h -- interface of the 'zlib' general purpose compression library
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1266,8 +1266,11 @@ else
@echo "To install (requires internet access) run: $ make format-cpp-build"
endif

CPPLINT_QUIET = --quiet

ifeq ($(V),1)
CPPLINT_QUIET =
else
CPPLINT_QUIET = --quiet
endif
.PHONY: lint-cpp
# Lints the C++ code with cpplint.py and check-imports.py.
lint-cpp: tools/.cpplintstamp
Expand Down
2 changes: 1 addition & 1 deletion benchmark/_cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function CLI(usage, settings) {
// item arguments
this.items.push(arg);

// the next value must be an item
// The next value must be an item
mode = 'item';
} else {
// Bad case, abort
Expand Down
4 changes: 2 additions & 2 deletions benchmark/net/net-c2s-cork.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// test the speed of .pipe() with sockets
// Test the speed of .pipe() with sockets
'use strict';

const common = require('../common.js');
Expand Down Expand Up @@ -78,7 +78,7 @@ Writer.prototype.write = function(chunk, encoding, cb) {
return true;
};

// doesn't matter, never emits anything.
// Doesn't matter, never emits anything.
Writer.prototype.on = function() {};
Writer.prototype.once = function() {};
Writer.prototype.emit = function() {};
Expand Down
4 changes: 2 additions & 2 deletions benchmark/net/net-c2s.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// test the speed of .pipe() with sockets
// Test the speed of .pipe() with sockets
'use strict';

const common = require('../common.js');
Expand Down Expand Up @@ -72,7 +72,7 @@ Writer.prototype.write = function(chunk, encoding, cb) {
return true;
};

// doesn't matter, never emits anything.
// Doesn't matter, never emits anything.
Writer.prototype.on = function() {};
Writer.prototype.once = function() {};
Writer.prototype.emit = function() {};
Expand Down
4 changes: 2 additions & 2 deletions benchmark/net/net-pipe.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// test the speed of .pipe() with sockets
// Test the speed of .pipe() with sockets
'use strict';

const common = require('../common.js');
Expand Down Expand Up @@ -75,7 +75,7 @@ Writer.prototype.write = function(chunk, encoding, cb) {
return true;
};

// doesn't matter, never emits anything.
// Doesn't matter, never emits anything.
Writer.prototype.on = function() {};
Writer.prototype.once = function() {};
Writer.prototype.emit = function() {};
Expand Down
4 changes: 2 additions & 2 deletions benchmark/net/net-s2c.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// test the speed of .pipe() with sockets
// Test the speed of .pipe() with sockets
'use strict';

const common = require('../common.js');
Expand Down Expand Up @@ -73,7 +73,7 @@ Writer.prototype.write = function(chunk, encoding, cb) {
return true;
};

// doesn't matter, never emits anything.
// Doesn't matter, never emits anything.
Writer.prototype.on = function() {};
Writer.prototype.once = function() {};
Writer.prototype.emit = function() {};
Expand Down
2 changes: 1 addition & 1 deletion benchmark/net/net-wrap-js-stream-passthrough.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Writer.prototype.write = function(chunk, encoding, cb) {
return true;
};

// doesn't matter, never emits anything.
// Doesn't matter, never emits anything.
Writer.prototype.on = function() {};
Writer.prototype.once = function() {};
Writer.prototype.emit = function() {};
Expand Down
4 changes: 2 additions & 2 deletions benchmark/net/tcp-raw-s2c.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
const common = require('../common.js');
const util = require('util');

// if there are dur=N and len=N args, then
// If there are dur=N and len=N args, then
// run the function with those settings.
// if not, then queue up a bunch of child processes.
// If not, then queue up a bunch of child processes.
const bench = common.createBenchmark(main, {
len: [102400, 1024 * 1024 * 16],
type: ['utf', 'asc', 'buf'],
Expand Down
2 changes: 1 addition & 1 deletion benchmark/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if (format === 'csv') {
for (const key of Object.keys(data.conf)) {
conf += ` ${key}=${JSON.stringify(data.conf[key])}`;
}
// delete first space of the configuration
// Delete first space of the configuration
conf = conf.slice(1);
if (format === 'csv') {
// Escape quotes (") for correct csv formatting
Expand Down
6 changes: 3 additions & 3 deletions benchmark/timers/immediate.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function depth1(N) {
}
}

// concurrent setImmediate, 0 arguments
// Concurrent setImmediate, 0 arguments
function breadth(N) {
var n = 0;
bench.start();
Expand All @@ -71,7 +71,7 @@ function breadth(N) {
}
}

// concurrent setImmediate, 1 argument
// Concurrent setImmediate, 1 argument
function breadth1(N) {
var n = 0;
bench.start();
Expand All @@ -85,7 +85,7 @@ function breadth1(N) {
}
}

// concurrent setImmediate, 4 arguments
// Concurrent setImmediate, 4 arguments
function breadth4(N) {
N /= 2;
var n = 0;
Expand Down
Loading