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.5.0 proposal #25102

Merged
merged 89 commits into from
Dec 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
022599c
tools: prepare tools/genv8constants.py for Python 3
Dec 3, 2018
a5c8af7
test: prepare test/message/testcfg.py for Python 3
Dec 3, 2018
a5c5786
test: refactor test-fs-write-file-sync.js
cjihrig Dec 4, 2018
8b109f0
process: simplify check in previousValueIsValid()
cjihrig Dec 4, 2018
5f60ed7
path: replace assertPath() with validator
cjihrig Dec 4, 2018
90d481e
src: remove unused env variables in node_util
danbev Dec 4, 2018
9b000e5
src: remove finalized_ member from Hash class
danbev Dec 4, 2018
c4f3cf9
doc: revise Waiting for Approvals documentation
Trott Dec 5, 2018
15632c3
tools: prepare tools/test.py for Python 3
Dec 3, 2018
526ff1d
test: prepare test/pseudo-tty/testcfg.py for Python 3
Dec 2, 2018
7cac76c
tools: prepare tools/specialize_node_d.py for Python 3
Dec 3, 2018
c3dda00
tools: prepare tools/js2c.py for Python 3
Dec 3, 2018
94d02ca
src: fix warning for potential snprintf truncation
sam-github Dec 3, 2018
5206f3a
src: do not alias new and old signal masks
sam-github Dec 3, 2018
c300aaa
doc: update LICENSE file
addaleax Dec 7, 2018
643ca14
doc: fix order of events when request is aborted
lpinca Dec 2, 2018
6db760c
test: improve test-net-socket-timeout
Trott Dec 5, 2018
3d87688
test: fix wrong parameter
zhmushan Dec 5, 2018
91ce957
test: make http2 timeout test robust
Trott Dec 6, 2018
592bad1
test: move http2 test to parallel
Trott Dec 6, 2018
f41443c
test: move test-cli-syntax to sequential
Trott Dec 8, 2018
81dce68
doc: update http doc for new Agent()/support options in socket.connect()
BeniCheni Dec 5, 2018
56b2a72
inspector: split the HostPort being used and the one parsed from CLI
joyeecheung Dec 1, 2018
cc8a805
build: fix compiler version detection
richardlau Dec 6, 2018
79c52a9
lib: improve error creation performance
BridgeAR Nov 18, 2018
2a11e6a
module: use validateString in modules/cjs
ZYSzys Dec 6, 2018
cda1da9
doc: update "Testing and CI" in Collaborator Guide
Trott Dec 7, 2018
ac46e27
tools: do not lint tools/inspector_protocol or tools/markupsafe
Dec 7, 2018
a6a3829
doc: simplify author ready
BridgeAR Dec 7, 2018
ad6104d
tools: update ESLint to 5.10.0
cjihrig Dec 8, 2018
e140d41
tools: capitalize sentences
BridgeAR Dec 3, 2018
1f61c89
tools: prepare tools/icu/icutrim.py for Python 3
Dec 7, 2018
25dae6c
module: use validateString in modules/esm
ZYSzys Dec 6, 2018
bf4faf3
assert,util: harden comparison
BridgeAR Dec 3, 2018
b60808a
tools: prepare tools/testp.py for Python 3
Dec 7, 2018
16a75be
tools: prepare ./tools/compress_json.py for Python 3
Dec 7, 2018
bc71e9e
test: prepare test/pseudo-tty/testcfg.py Python 3
Dec 7, 2018
56fd127
test: do not lint macros files (again)
Dec 7, 2018
22b6bef
test: mark test-cli-syntax as flaky/unreliable
Trott Dec 11, 2018
0220cd3
doc: remove bad link to irc info
richardlau Dec 11, 2018
08c6b21
src: use Local version of ToBoolean()
cjihrig Dec 9, 2018
9bfbb68
doc: add class worker documentation
yoshimoto8 Dec 5, 2018
e050a57
test: replace callback with arrows
Shubhamurkade Nov 27, 2018
d760572
src: remove use of CallOnForegroundThread()
cjihrig Dec 9, 2018
b2e6cbd
doc: update Useful CI Jobs section of Collaborator Guide
Trott Dec 9, 2018
39af61f
stream: fix end-of-stream for HTTP/2
addaleax Dec 9, 2018
016e352
test: test TLS client authentication
sam-github Oct 12, 2017
390e050
tls: support "BEGIN TRUSTED CERTIFICATE" for ca:
sam-github Nov 30, 2018
117e991
util: add inspection getter option
BridgeAR Dec 4, 2018
e61bbda
test: improve internet/test-dns
IlarionHalushka Dec 9, 2018
5a1289d
src: create env->inspector_console_api_object earlier
joyeecheung Dec 8, 2018
f854701
src: include node_internals.h in node_metadata.cc
danbev Dec 10, 2018
331f604
worker: drain messages from internal message port
yaelhe Dec 10, 2018
d366676
test: split test-cli-syntax into multiple tests
Trott Dec 9, 2018
1e09629
doc: fix author-ready conflict
BridgeAR Dec 13, 2018
649a728
test: from functools import reduce in test/testpy/__init__.py
Dec 11, 2018
f0bcacd
doc: update a link of npm repository
watilde Dec 11, 2018
877f8a0
doc: revise internal vs. public API in Collaborator Guide
Trott Dec 11, 2018
d5b0ce1
test: refactor test-enable-in-init
Dec 12, 2018
dbdea36
doc: add codebytere's info to release team
codebytere Dec 13, 2018
d0270f3
src: add GetLoadedLibraries routine
gireeshpunathil Dec 4, 2018
5f8950b
src: emit 'params' instead of 'data' for NodeTracing.dataCollected
kjin Dec 10, 2018
f43f45a
process: properly close file descriptor on exit
BridgeAR Dec 11, 2018
900a412
test: increase error information in test-cli-syntax-*
Trott Dec 13, 2018
a4ef54a
test: mark test-child-process-execsync flaky on AIX
Trott Dec 14, 2018
9bd4267
test: mark test-cli-node-options flaky on arm
Trott Dec 14, 2018
2456a54
lib: ensure readable stream flows to end
Rantanen Dec 9, 2018
e7b77ea
url: remove an eslint-disable comment
cjihrig Dec 12, 2018
2825894
test: mark test-worker-memory flaky on Windows CI
Trott Dec 14, 2018
da984be
test: remove reference to whatwg in file names under test/wpt
joyeecheung Dec 4, 2018
7e0dbc6
test: improve WPT runner name matching
joyeecheung Nov 18, 2018
1e3fb0a
test: mark test-child-process-exit-code flaky
Trott Dec 14, 2018
ac919ef
test: mark test-child-process-execfile flaky
Trott Dec 14, 2018
a1f0da1
util: remove todo
BridgeAR Dec 12, 2018
eb9e6e6
test: adding history regression test case
antsmartian Dec 13, 2018
e04e854
test: use blocks instead of async IIFE
addaleax Dec 12, 2018
d449c36
stream: re-use existing `once()` implementation
addaleax Dec 12, 2018
302081b
build: make lint-addon-docs run only if needed
danbev Dec 12, 2018
110fd39
test: remove dead code
BridgeAR Dec 13, 2018
ddff644
test: run eslint on test file and fix errors
BridgeAR Dec 13, 2018
ab1801b
test: use global.gc() instead of gc()
cjihrig Dec 13, 2018
4f0d17b
test: remove unnecessary linter comment
cjihrig Dec 13, 2018
f4d5c35
net: use strict comparisons for fd
cjihrig Dec 13, 2018
00ce972
doc: make README formatting more consistent
yewenjunfighting Dec 13, 2018
a9f239f
doc: add EventTarget link to worker_threads
Azard Dec 15, 2018
5931747
util: inspect all prototypes
BridgeAR Dec 11, 2018
bde5df2
doc: fix node.1 --http-parser sort order
cjihrig Dec 14, 2018
2e94f3b
querystring: remove eslint-disable
cjihrig Dec 12, 2018
9a5b243
2018-12-18, Version 11.5.0 (Current)
BethGriggs Dec 18, 2018
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
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
node_modules
lib/internal/v8.js
lib/internal/v8_prof_polyfill.js
lib/punycode.js
test/addons/??_*
test/es-module/test-esm-dynamic-import.js
test/fixtures
test/message/esm_display_syntax_error.mjs
tools/icu
Expand Down
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ module.exports = {
'arrow-spacing': ['error', { before: true, after: true }],
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'capitalized-comments': ['error', 'always', {
line: {
// Ignore all lines that have less characters than 62 and all lines that
// start with something that looks like a variable name or code.
ignorePattern: '^.{0,62}$|^ [a-z]+ ?[0-9A-Z_.(/=:-]',
ignoreInlineComments: true,
ignoreConsecutiveComments: true
},
block: {
ignorePattern: '.*'
}
}],
'comma-dangle': ['error', 'only-multiline'],
'comma-spacing': 'error',
'comma-style': 'error',
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V11.md#11.4.0">11.4.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V11.md#11.5.0">11.5.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V11.md#11.4.0">11.4.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V11.md#11.3.0">11.3.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V11.md#11.2.0">11.2.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V11.md#11.1.0">11.1.0</a><br/>
Expand Down
151 changes: 61 additions & 90 deletions COLLABORATOR_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ issues and pull requests can always be re-opened if necessary.
A pull request is _author ready_ when:

* There is a CI run in progress or completed.
* There are at least two Collaborator approvals, or at least one approval if the
pull request is older than 7 days.
* There is at least one Collaborator approval.
* There are no outstanding review comments.

Please always add the `author ready` label to the pull request in that case.
Expand Down Expand Up @@ -147,56 +146,54 @@ the TSC meeting agenda.

### Waiting for Approvals

Before landing pull requests, sufficient time should be left for input
from other Collaborators. In general, leave at least 48 hours to account for
international time differences and work schedules. However, certain types of
pull requests can be fast-tracked and may be landed after a shorter delay. For
example:
Before landing pull requests, allow 48 hours for input from other Collaborators.
Certain types of pull requests can be fast-tracked and may land after a shorter
delay. For example:

* Focused changes that affect only documentation and/or the test suite:
* `code-and-learn` tasks typically fall into this category.
* `code-and-learn` tasks often fall into this category.
* `good-first-issue` pull requests may also be suitable.
* Changes that fix regressions:
* Regressions that break the workflow (red CI or broken compilation).
* Regressions that happen right before a release, or reported soon after.

When a pull request is deemed suitable to be fast-tracked, label it with
`fast-track` and add a comment that collaborators may upvote. Please mention any
Collaborators that previously approved the pull request. If someone disagrees
with the fast-tracking request, remove the label and leave a comment indicating
why the pull request should not be fast-tracked. The pull request can be landed
once two or more Collaborators approve both the pull request and the
fast-tracking request, and the necessary CI testing is done. A request to
fast-track a PR made by a different Collaborator than the pull-request author
counts as a fast-track approval.
To propose fast-tracking a pull request, apply the `fast-track` label. Then add
a comment that Collaborators may upvote.

If someone disagrees with the fast-tracking request, remove the label. Do not
fast-track the pull request in that case.

The pull request may be fast-tracked if two Collaborators approve the
fast-tracking request. To land, the pull request itself still needs two
Collaborator approvals and a passing CI.

Collaborators may request fast-tracking of pull requests they did not author.
In that case only, the request itself is also one fast-track approval. Upvote
the comment anyway to avoid any doubt.

### Testing and CI

All bugfixes require a test case which demonstrates the defect. The
test should *fail* before the change, and *pass* after the change.
All fixes must have a test case which demonstrates the defect. The test should
fail before the change, and pass after the change.

All pull requests that modify executable code should also include a test case
and must be subjected to continuous integration tests on the
[project CI server](https://ci.nodejs.org/). The pull request should have a CI
status indicator.
All pull requests must pass continuous integration tests on the
[project CI server](https://ci.nodejs.org/).

Do not land any Pull Requests without passing (green or yellow) CI runs. If you
believe any failed (red or grey) CI sub-tasks are unrelated to the change in the
Pull Request, use "Resume Build" in the left navigation of the relevant
`node-test-pull-request` job. It will create a new `node-test-pull-request` run
that preserves all the green results from the current job but re-runs everything
else.
Do not land any pull requests without passing (green or yellow) CI runs. If
there are CI failures unrelated to the change in the pull request, try "Resume
Build". It is in the left navigation of the relevant `node-test-pull-request`
job. It will preserve all the green results from the current job but re-run
everything else.

#### Useful CI Jobs

* [`node-test-pull-request`](https://ci.nodejs.org/job/node-test-pull-request/)
is the standard CI run we do to check Pull Requests. It triggers
`node-test-commit`, which runs the `build-ci` and `test-ci` targets on all
supported platforms.
is the CI job to test pull requests. It runs the `build-ci` and `test-ci`
targets on all supported platforms.

* [`node-test-pull-request-lite-pipeline`](https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/)
only runs the linter job, as well as the tests on LinuxONE, which is very fast.
This is useful for changes that only affect comments or documentation.
runs the linter job. It also runs the tests on a very fast host. This is useful
for changes that only affect comments or documentation.

* [`citgm-smoker`](https://ci.nodejs.org/job/citgm-smoker/)
uses [`CitGM`](https://github.com/nodejs/citgm) to allow you to run
Expand All @@ -205,69 +202,43 @@ useful to check whether a change will cause breakage in the ecosystem. To test
Node.js ABI changes you can run [`citgm-abi-smoker`](https://ci.nodejs.org/job/citgm-abi-smoker/).

* [`node-stress-single-test`](https://ci.nodejs.org/job/node-stress-single-test/)
is designed to allow one to run a group of tests over and over on a specific
platform to confirm that the test is reliable.
can run a group of tests over and over on a specific platform. Use it to check
that the tests are reliable.

* [`node-test-commit-v8-linux`](https://ci.nodejs.org/job/node-test-commit-v8-linux/)
is designed to allow validation of changes to the copy of V8 in the Node.js
tree by running the standard V8 tests. It should be run whenever the
level of V8 within Node.js is updated or new patches are floated on V8.
runs the standard V8 tests. Run it when updating V8 in Node.js or floating new
patches on V8.

* [`node-test-commit-custom-suites`](https://ci.nodejs.org/job/node-test-commit-custom-suites/)
can be used to customize what tests are run and with what parameters. For
example, it can be used to execute tests which are not executed in a typical
`node-test-commit` run (such as tests in the `internet` or `pummel`
directories). It can also be used to make sure tests pass when provided with a
flag not typically used in other CI test runs (such as `--worker`).
enables customization of test suites and parameters. It can execute test suites
not used in other CI test runs (such as tests in the `internet` or `pummel`
directories). It can also make sure tests pass when provided with a flag not
used in other CI test runs (such as `--worker`).

### Internal vs. Public API

Due to the nature of the JavaScript language, it can often be difficult to
establish a clear distinction between which parts of the Node.js implementation
represent the public API Node.js users should assume to be stable and which
are part of the internal implementation details of Node.js itself. A rule of
thumb is to base the determination off what functionality is actually
documented in the official Node.js API documentation. However, it has been
repeatedly demonstrated that either the documentation does not completely cover
implemented behavior or that Node.js users have come to rely heavily on
undocumented aspects of the Node.js implementation.

The following general rules should be followed to determine which aspects of the
Node.js API are internal:

- All functionality exposed via `process.binding(...)` is internal.
- All functionality implemented in `lib/internal/**/*.js` is internal unless it
is re-exported by code in `lib/*.js` or documented as part of the Node.js
Public API.
- Any object property or method whose key is a non-exported `Symbol` is an
internal property.
- Any object property or method whose key begins with the underscore `_` prefix
is internal unless it is documented as part of the Node.js Public API.
- Any object, property, method, argument, behavior, or event not documented in
the Node.js documentation is internal.
- Any native C/C++ APIs/ABIs exported by the Node.js `*.h` header files that
are hidden behind the `NODE_WANT_INTERNALS` flag are internal.

Exceptions can be made if use or behavior of a given internal API can be
demonstrated to be sufficiently relied upon by the Node.js ecosystem such that
any changes would cause too much breakage. The threshold for what qualifies as
too much breakage is to be decided on a case-by-case basis by the TSC.

If it is determined that a currently undocumented object, property, method,
argument, or event *should* be documented, then a pull request adding the
documentation is required in order for it to be considered part of the public
API.

Making a determination about whether something *should* be documented can be
difficult and will need to be handled on a case-by-case basis. For instance, if
one documented API cannot be used successfully without the use of a second
*currently undocumented* API, then the second API *should* be documented. If
using an API in a manner currently undocumented achieves a particular useful
result, a decision will need to be made whether or not that falls within the
supported scope of that API; and if it does, it should be documented.

See [Breaking Changes to Internal Elements](#breaking-changes-to-internal-elements)
on how to handle those types of changes.
All functionality in the official Node.js documentation is part of the public
API. Any undocumented object, property, method, argument, behavior, or event is
internal. There are exceptions to this rule. Node.js users have come to rely on
some undocumented behaviors. Collaborators treat many of those undocumented
behaviors as public.

All undocumented functionality exposed via `process.binding(...)` is internal.

All undocumented functionality in `lib/internal/**/*.js` is internal. It is
public, though, if it is re-exported by code in `lib/*.js`.

Non-exported `Symbol` properties and methods are internal.

Any undocumented object property or method that begins with `_` is internal.

Any native C/C++ APIs/ABIs requiring the `NODE_WANT_INTERNALS` flag are
internal.

Sometimes, there is disagreement about whether functionality is internal or
public. In those cases, the TSC makes a determination.

For undocumented APIs that are public, open a pull request documenting the API.

### Breaking Changes

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ The externally maintained libraries used by Node.js are:

- c-ares, located at deps/cares, is licensed as follows:
"""
Copyright (c) 2007 - 2016, Daniel Stenberg with many contributors, see AUTHORS
Copyright (c) 2007 - 2018, Daniel Stenberg with many contributors, see AUTHORS
file.

Copyright 1998 by the Massachusetts Institute of Technology.
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1263,10 +1263,14 @@ tools/.cpplintstamp: $(LINT_CPP_FILES)
@$(PYTHON) tools/check-imports.py
@touch $@

lint-addon-docs: test/addons/.docbuildstamp
.PHONY: lint-addon-docs
lint-addon-docs: tools/.doclintstamp

tools/.doclintstamp: test/addons/.docbuildstamp
@echo "Running C++ linter on addon docs..."
@$(PYTHON) tools/cpplint.py $(CPPLINT_QUIET) --filter=$(ADDON_DOC_LINT_FLAGS) \
$(LINT_CPP_ADDON_DOC_FILES_GLOB)
@touch $@

cpplint: lint-cpp
@echo "Please use lint-cpp instead of cpplint"
Expand All @@ -1286,7 +1290,7 @@ ifneq ("","$(wildcard tools/pip/site-packages)")
lint-py:
PYTHONPATH=tools/pip $(PYTHON) -m flake8 . \
--count --show-source --statistics --select=E901,E999,F821,F822,F823 \
--exclude=.git,deps,lib,src,tools/*_macros.py,tools/gyp,tools/jinja2,tools/pip
--exclude=.git,deps,lib,src,tools/*_macros.py,tools/gyp,tools/inspector_protocol,tools/jinja2,tools/markupsafe,tools/pip
else
lint-py:
@echo "Python linting with flake8 is not avalible"
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ If you didn't find an answer in the resources above, try these unofficial
resources:

* [Questions tagged 'node.js' on StackOverflow][]
* [#node.js channel on chat.freenode.net][]. See <http://nodeirc.info/> for more
information.
* [#node.js channel on chat.freenode.net][]
* [Node.js Discord Community](https://discordapp.com/invite/v7rrPdE)
* [Node.js Slack Community](https://node-js.slack.com/): Visit
[nodeslackers.com](http://www.nodeslackers.com/) to register.
* [Node.js Slack Community](https://node-js.slack.com/)
* To register: [nodeslackers.com](http://www.nodeslackers.com/)

GitHub issues are for tracking enhancements and bugs, not general support.

Expand Down Expand Up @@ -552,11 +551,14 @@ GPG keys used to sign Node.js releases:
`DD8F2338BAE7501E3DD5AC78C273792F7D83545D`
* **Ruben Bridgewater** &lt;ruben@bridgewater.de&gt;
`A48C2BEE680E841632CD4E44F07496B3EB3C1762`
* **Shelley Vohr** &lt;shelley.vohr@gmail.com&gt;
`B9E2F5981AA6E0CD28160D9FF13993A75599653C`

To import the full set of trusted release keys:

```shell
gpg --keyserver pool.sks-keyservers.net --recv-keys 4ED778F539E3634C779C87C6D7062848A1AB005C
gpg --keyserver pool.sks-keyservers.net --recv-keys B9E2F5981AA6E0CD28160D9FF13993A75599653C
gpg --keyserver pool.sks-keyservers.net --recv-keys 94AE36675C464D64BAFA68DD7434390BDBE9B9C5
gpg --keyserver pool.sks-keyservers.net --recv-keys B9AE9905FFD7803F25714661B63B535A4C206CA9
gpg --keyserver pool.sks-keyservers.net --recv-keys 77984A986EBC2AA786BC0F66B01FBB92821C587A
Expand Down
2 changes: 1 addition & 1 deletion benchmark/_cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function CLI(usage, settings) {
this.optional[currentOptional] = true;
mode = 'both';
} else {
// expect the next value to be option related (either -- or the value)
// Expect the next value to be option related (either -- or the value)
mode = 'option';
}
} else if (mode === 'option') {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/child_process/child-process-exec-stdout.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function childProcessExecStdout({ dur, len }) {
try {
execSync(`taskkill /f /t /pid ${child.pid}`);
} catch {
// this is a best effort kill. stderr is piped to parent for tracing.
// This is a best effort kill. stderr is piped to parent for tracing.
}
} else {
child.kill();
Expand Down
4 changes: 2 additions & 2 deletions benchmark/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Benchmark.prototype._run = function() {
(function recursive(queueIndex) {
const config = self.queue[queueIndex];

// set NODE_RUN_BENCHMARK_FN to indicate that the child shouldn't construct
// Set NODE_RUN_BENCHMARK_FN to indicate that the child shouldn't construct
// a configuration queue, but just execute the benchmark function.
const childEnv = Object.assign({}, process.env);
childEnv.NODE_RUN_BENCHMARK_FN = '';
Expand Down Expand Up @@ -187,7 +187,7 @@ Benchmark.prototype.start = function() {
};

Benchmark.prototype.end = function(operations) {
// get elapsed time now and do error checking later for accuracy.
// Get elapsed time now and do error checking later for accuracy.
const elapsed = process.hrtime(this._time);

if (!this._started) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/crypto/cipher-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function main({ api, cipher, type, len, writes }) {

const fn = api === 'stream' ? streamWrite : legacyWrite;

// write data as fast as possible to alice, and have bob decrypt.
// Write data as fast as possible to alice, and have bob decrypt.
// use old API for comparison to v0.8
bench.start();
fn(alice_cipher, bob_cipher, message, encoding, writes);
Expand Down
2 changes: 1 addition & 1 deletion benchmark/dgram/array-vs-concat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// test UDP send throughput with the multi buffer API against Buffer.concat
// Test UDP send throughput with the multi buffer API against Buffer.concat
'use strict';

const common = require('../common.js');
Expand Down
2 changes: 1 addition & 1 deletion benchmark/dgram/offset-length.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// test UDP send/recv throughput with the "old" offset/length API
// Test UDP send/recv throughput with the "old" offset/length API
'use strict';

const common = require('../common.js');
Expand Down
2 changes: 1 addition & 1 deletion benchmark/napi/function_call/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
const assert = require('assert');
const common = require('../../common.js');

// this fails when we try to open with a different version of node,
// This fails when we try to open with a different version of node,
// which is quite common for benchmarks. so in that case, just
// abort quietly.

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
@@ -1,4 +1,4 @@
// test the speed of .pipe() with JSStream wrapping for PassThrough streams
// Test the speed of .pipe() with JSStream wrapping for PassThrough streams
'use strict';

const common = require('../common.js');
Expand Down
Loading