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

v18.3.0 proposal #43266

Merged
merged 76 commits into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
b3c8e60
deps: update V8 to 10.2.154.2
targos Apr 19, 2022
b8b5e6d
build: reset embedder string to "-node.0"
targos Apr 19, 2022
4be7584
deps: V8: un-cherry-pick bd019bd
refack Mar 27, 2019
f83323f
deps: V8: forward declaration of `Rtl*FunctionTable`
refack May 22, 2019
e678b6c
deps: fix V8 build issue with inline methods
gengjiawen Oct 14, 2020
2130891
deps: disable trap handler for Windows cross-compiler
targos Oct 20, 2021
45e1fd4
deps: silence V8's warning on CompileFunction
targos Nov 22, 2021
76546b1
deps: V8: fix v8-cppgc.h for MSVC
gengjiawen Mar 17, 2022
c626a53
deps: make V8 compilable with older glibc
targos Mar 18, 2022
742ffef
deps: make V8 10.2 ABI-compatible with 10.1
targos Apr 19, 2022
5228028
tools: update V8 gypfiles for 10.2
targos Apr 12, 2022
d663470
build: run V8 tests with detected Python version
richardlau Apr 5, 2022
5eff7b4
Revert "build: make x86 Windows support temporarily experimental"
targos Apr 14, 2022
0000654
deps: patch V8 to 10.2.154.4
targos May 17, 2022
9577878
src: replace TraceEventScope with sync events
legendecas May 5, 2022
b318185
doc: add strategic initiative for shadow realm
legendecas May 16, 2022
82fb037
src: move context snapshot index to SnapshotData
joyeecheung May 9, 2022
85d81a7
bootstrap: include code cache in the embedded snapshot
joyeecheung Nov 18, 2021
72a767b
src: remove SecureContext::operator*
tniessen May 17, 2022
3e89b73
fs: make params in writing methods optional
LiviaMedeiros Apr 4, 2022
4e9393e
doc: use ASCII apostrophes consistently
tniessen May 17, 2022
6f48dfb
fs: add trailing commas
LiviaMedeiros May 17, 2022
d8a14a2
src: fix static analysis warning and use smart ptr
tniessen May 18, 2022
d42de13
deps: upgrade npm to 8.10.0
May 11, 2022
4d9f43a
doc: use serial comma in dns docs
tniessen May 19, 2022
7d8d9d6
meta: add mailmap entry for Morgan Roderick
lpinca May 19, 2022
11c783f
net: remoteAddress always undefined called before connected
y1d7ng May 8, 2022
d91b489
worker: fix heap snapshot crash on exit
legendecas May 17, 2022
1be254b
meta: add mailmap entry for npm team
lpinca May 19, 2022
093a3cf
doc: fix errors in Performance hooks doc
y1d7ng May 19, 2022
56fc712
doc: use serial comma in assert docs
tniessen May 20, 2022
945f228
doc: add release key for RafaelGSS
RafaelGSS May 20, 2022
1da6b7c
meta: add mailmap entry for legendecas
legendecas May 20, 2022
1183058
tools: refactor update-authors.js to ESM
F3n67u May 21, 2022
1e2552b
src: reuse GetServerName
tniessen May 21, 2022
9cc5ce6
test: improve readline/emitKeypressEvents.js coverage
y1d7ng May 22, 2022
ed352a9
tools: update eslint to 8.16.0
nodejs-github-bot May 22, 2022
2b8b224
doc: remove outdated footnote (Python 2 --> 3 for V8 tests)
DeeDeeG May 22, 2022
285ef30
console: fix console.dir crash on a revoked proxy
daeyeon May 22, 2022
0efeceb
tools: update lint-md-dependencies to rollup@2.74.1
nodejs-github-bot May 22, 2022
71074ee
doc: improve callback params for `fs.mkdir`
daeyeon May 22, 2022
f90a3d7
doc: improved parallel specification
mawaregetsuka May 22, 2022
c76caad
debugger: throw a more useful error when the frame is missing
cola119 May 22, 2022
d9fb25c
tools: refactor build-addons.js to ESM
F3n67u May 22, 2022
701d404
lib: refactor `validateInt32` and `validateUint32`
mawaregetsuka May 22, 2022
b772c13
doc: use serial comma in process docs
tniessen May 22, 2022
9539cfa
http: add uniqueHeaders option to request and createServer
ShogunPanda Jan 10, 2022
41b69e3
src,lib: migrate to console on context's extra binding
legendecas May 18, 2022
8f5b457
net: add ability to reset a tcp socket
PupilTong May 15, 2022
d7ca223
test: use mustSucceed instead of mustCall with assert.ifError
fossamagna May 23, 2022
598c1f1
doc: use serial comma in dgram docs
tniessen May 23, 2022
6ee9fb1
src: make SecureContext fields private
tniessen May 24, 2022
3082c75
doc: make minor adjustments
LiviaMedeiros May 24, 2022
a07f5f2
http2: improve tests and docs
daeyeon May 24, 2022
baa5d00
src: refactor GetCipherValue and related functions
tniessen May 24, 2022
d6cf409
util: add parseArgs module
bcoe May 24, 2022
87b248e
deps: update undici to 5.3.0
nodejs-github-bot May 24, 2022
3e1ed1e
test: improve code coverage for inspector connection errors
cola119 May 25, 2022
b187060
http2: set origin name correctly when servername is empty
ofirbarak May 25, 2022
920d8c5
crypto: align webcrypto RSA key import/export with other implementations
panva May 25, 2022
76b4680
doc: document `signal` option for `EventTarget#addEventListener`
aduh95 May 25, 2022
54d68b1
perf_hooks: fix start_time of perf_hooks
theanarkh May 12, 2022
41fdc26
deps: upgrade npm to 8.11.0
May 25, 2022
9c4e070
node-api: emit uncaught-exception on unhandled tsfn callbacks
legendecas Dec 14, 2020
776e746
doc: fix napi version for node_api_symbol_for
danielleadams Apr 27, 2022
badf72d
doc: use serial comma in worker_threads docs
tniessen May 28, 2022
0098933
doc: add note regarding `%Array.prototype.concat%` in `primordials.md`
aduh95 May 29, 2022
447bbd0
tls: fix convertALPNProtocols accepting ArrayBufferViews
LiviaMedeiros May 26, 2022
09da764
meta: update AUTHORS
nodejs-github-bot May 29, 2022
df69146
tools: update lint-md-dependencies to rollup@2.75.1
nodejs-github-bot May 29, 2022
ecacc3a
deps: exclude linker scripts for windows builds
danbev May 5, 2022
35250bf
deps: regenerate OpenSSL archs files
danbev May 16, 2022
0afdc3e
doc: use serial comma in errors docs
tniessen May 30, 2022
aefc9dd
benchmark: add node-error benchmark
RafaelGSS May 12, 2022
dc3b91f
deps: update undici to 5.4.0
nodejs-github-bot Jun 1, 2022
49362ef
2022-06-01, Version 18.3.0 (Current)
bengl May 31, 2022
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 .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,8 @@

/benchmark/misc/startup.js @nodejs/startup
/src/node.cc @nodejs/startup
/src/node_code_cache_stub.cc @nodejs/startup
/src/node_native_module* @nodejs/startup
/lib/internal/bootstrap/* @nodejs/startup
/tools/code_cache/* @nodejs/startup
/tools/snapshot/* @nodejs/startup

# V8
Expand Down
2 changes: 1 addition & 1 deletion .github/label-pr-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ subSystemLabels:
/^tools\/make-v8/: tools, v8 engine, needs-ci
/^tools\/v8_gypfiles/: tools, v8 engine, needs-ci
/^tools\/(code_cache|snapshot)/: needs-ci
/^tools\/build-addons.js/: needs-ci
/^tools\/build-addons.mjs/: needs-ci
# all other tool changes should be marked as such
/^tools\//: tools
/^\.eslint|\.remark|\.editorconfig/: tools
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
fetch-depth: '0' # This is required to actually get all the authors
persist-credentials: false
- run: tools/update-authors.js # Run the AUTHORS tool
- run: tools/update-authors.mjs # Run the AUTHORS tool
- uses: gr2m/create-or-update-pull-request-action@v1 # Create a PR or update the Action's existing PR
env:
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
Expand All @@ -24,7 +24,7 @@ jobs:
body: >
Here are some new additions to the AUTHORS file.
This is an automatically generated PR by the
`authors.yml` GitHub Action, which runs `tools/update-authors.js`.
`authors.yml` GitHub Action, which runs `tools/update-authors.mjs`.
branch: actions/authors-update # Custom branch *just* for this Action.
commit-message: 'meta: update AUTHORS'
labels: meta
Expand Down
6 changes: 6 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ Charles <ineedpracticing@gmail.com> <cydjudge@users.noreply.github.com>
Charles Rudolph <charles.rudolph@originate.com>
Chen Gang <gangc.cxy@foxmail.com>
Chen Gang <gangc.cxy@foxmail.com> <13298548+MoonBall@users.noreply.github.com>
Chengzhong Wu <legendecas@gmail.com>
Chengzhong Wu <legendecas@gmail.com> <chengzhong.wcz@alibaba-inc.com>
Chew Choon Keat <choonkeat@gmail.com>
Chris Andrews <cpandrews8@gmail.com>
Chris Johnson <chris.s.johnson4@gmail.com>
Expand Down Expand Up @@ -357,6 +359,8 @@ Mitar Milutinovic <mitar.git@tnode.com>
Mithun Sasidharan <mithunsasidharan89@gmail.com> <msasidharan@paypal.com>
Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> <62040526+VoltrexMaster@users.noreply.github.com>
Morgan Roderick <morgan@roderick.dk>
Morgan Roderick <morgan@roderick.dk> <20321+mroderick@users.noreply.github.com>
MURAKAMI Masahiko <m-murakami@esm.co.jp> <fossamagna2@gmail.com>
Myles Borins <myles.borins@gmail.com> <mborins@us.ibm.com>
Myles Borins <myles.borins@gmail.com> <mylesborins@github.com>
Expand All @@ -374,13 +378,15 @@ Nitzan Uziely <linkgoron@gmail.com> <Linkgoron@users.noreply.github.com>
Nitzan Uziely <linkgoron@gmail.com> <nitzan@testim.io>
Noah Rose Ledesma <noahroseledesma@seattleacademy.org>
npm team <ops+robot@npmjs.com>
npm team <ops+robot@npmjs.com> <npm CLI robot>
npm team <ops+robot@npmjs.com> <npm team>
Oliver Chang <ochang@chromium.org>
Oluwaseun Omoyajowo <omoyajowo2015@gmail.com>
OneNail <OneNail@yeah.net> <onenail@yeah.net>
Onne Gorter <onne@onnlucky.com>
Oscar Martinez <oscar@mtnz-web.com> <oscar.martinez@hautelook.com>
Paolo Insogna <paolo@cowtech.it>
Paolo Insogna <paolo@cowtech.it> <ShogunPanda@users.noreply.github.com>
Paul Graham <homosaur@gmail.com> <paul@bytefair.com>
Paul Querna <pquerna@apache.org> <paul@querna.org>
Pedro Lima <pvsousalima@gmail.com>
Expand Down
6 changes: 3 additions & 3 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ Yongsheng Zhang <zyszys98@gmail.com>
Neeraj Laad <neeraj.laad@uk.ibm.com>
Scott Van Gilder <svangilder@gmail.com>
Yaniv Friedensohn <yaniv.friedensohn@gmail.com>
Lucas Woo <legendecas@gmail.com>
Chengzhong Wu <legendecas@gmail.com>
Troels Liebe Bentsen <troels@connectedcars.dk>
pranshuchittora <pranshuchittora17@gmail.com>
lakamsani <lakamsani@gmail.com>
Expand Down Expand Up @@ -3260,7 +3260,6 @@ Siddharth <siddharth.muscat@gmail.com>
Cactysman <git@cactys.dev>
David Brownman <beamneocube@gmail.com>
Michael Rommel <rommel@layer-7.net>
Chengzhong Wu <chengzhong.wcz@alibaba-inc.com>
Andres <and.atencio@gmail.com>
Jayden Seric <me@jaydenseric.com>
divlo <contact@divlo.fr>
Expand Down Expand Up @@ -3460,5 +3459,6 @@ Sergey Nazaryev <sergey@nazaryev.com>
William Marlow <william.marlow@ibm.com>
Keyhan Vakil <60900335+airtable-keyhanvakil@users.noreply.github.com>
Feng Yu <F3n67u@outlook.com>
pupilTong <pupiltong@outlook.com>

# Generated by tools/update-authors.js
# Generated by tools/update-authors.mjs
47 changes: 24 additions & 23 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,25 +99,25 @@ 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)
platforms. This is true regardless of entries in the table below.

| Operating System | Architectures | Versions | Support Type | Notes |
| ---------------- | ---------------- | --------------------------------- | ------------------------------------------- | ------------------------------------ |
| GNU/Linux | x64 | kernel >= 4.18[^1], glibc >= 2.28 | Tier 1 | e.g. Ubuntu 20.04, Debian 10, RHEL 8 |
| GNU/Linux | x64 | kernel >= 3.10, musl >= 1.1.19 | Experimental | e.g. Alpine 3.8 |
| GNU/Linux | x86 | kernel >= 3.10, glibc >= 2.17 | Experimental | Downgraded as of Node.js 10 |
| GNU/Linux | arm64 | kernel >= 4.18[^1], glibc >= 2.28 | Tier 1 | e.g. Ubuntu 20.04, Debian 10, RHEL 8 |
| GNU/Linux | armv7 | kernel >= 4.18[^1], glibc >= 2.28 | Tier 1 | e.g. Ubuntu 20.04, Debian 10 |
| GNU/Linux | armv6 | kernel >= 4.14, glibc >= 2.24 | Experimental | Downgraded as of Node.js 12 |
| GNU/Linux | ppc64le >=power8 | kernel >= 4.18[^1], glibc >= 2.28 | Tier 2 | e.g. Ubuntu 20.04, RHEL 8 |
| GNU/Linux | s390x | kernel >= 4.18[^1], glibc >= 2.28 | Tier 2 | e.g. RHEL 8 |
| Windows | x64 | >= Windows 10/Server 2016 | Tier 1 | [^2],[^3] |
| Windows | x86 | >= Windows 10/Server 2016 | Experimental | [^4] |
| Windows | x64, x86 | Windows 8.1/Server 2012 | Experimental | |
| Windows | arm64 | >= Windows 10 | Tier 2 (compiling) / Experimental (running) | |
| macOS | x64 | >= 10.15 | Tier 1 | For notes about compilation see [^5] |
| macOS | arm64 | >= 11 | Tier 1 | |
| SmartOS | x64 | >= 18 | Tier 2 | |
| AIX | ppc64be >=power8 | >= 7.2 TL04 | Tier 2 | |
| FreeBSD | x64 | >= 12.2 | Experimental | |
| Operating System | Architectures | Versions | Support Type | Notes |
| ---------------- | ---------------- | --------------------------------- | ----------------------------------------------- | ------------------------------------ |
| GNU/Linux | x64 | kernel >= 4.18[^1], glibc >= 2.28 | Tier 1 | e.g. Ubuntu 20.04, Debian 10, RHEL 8 |
| GNU/Linux | x64 | kernel >= 3.10, musl >= 1.1.19 | Experimental | e.g. Alpine 3.8 |
| GNU/Linux | x86 | kernel >= 3.10, glibc >= 2.17 | Experimental | Downgraded as of Node.js 10 |
| GNU/Linux | arm64 | kernel >= 4.18[^1], glibc >= 2.28 | Tier 1 | e.g. Ubuntu 20.04, Debian 10, RHEL 8 |
| GNU/Linux | armv7 | kernel >= 4.18[^1], glibc >= 2.28 | Tier 1 | e.g. Ubuntu 20.04, Debian 10 |
| GNU/Linux | armv6 | kernel >= 4.14, glibc >= 2.24 | Experimental | Downgraded as of Node.js 12 |
| GNU/Linux | ppc64le >=power8 | kernel >= 4.18[^1], glibc >= 2.28 | Tier 2 | e.g. Ubuntu 20.04, RHEL 8 |
| GNU/Linux | s390x | kernel >= 4.18[^1], glibc >= 2.28 | Tier 2 | e.g. RHEL 8 |
| Windows | x64, x86 (WoW64) | >= Windows 10/Server 2016 | Tier 1 | [^2],[^3] |
| Windows | x86 (native) | >= Windows 10/Server 2016 | Tier 1 (running) / Experimental (compiling)[^4] | |
| Windows | x64, x86 | Windows 8.1/Server 2012 | Experimental | |
| Windows | arm64 | >= Windows 10 | Tier 2 (compiling) / Experimental (running) | |
| macOS | x64 | >= 10.15 | Tier 1 | For notes about compilation see [^5] |
| macOS | arm64 | >= 11 | Tier 1 | |
| SmartOS | x64 | >= 18 | Tier 2 | |
| AIX | ppc64be >=power8 | >= 7.2 TL04 | Tier 2 | |
| FreeBSD | x64 | >= 12.2 | Experimental | |

[^1]: Older kernel versions may work. However official Node.js release
binaries are [built on RHEL 8 systems](#official-binary-platforms-and-toolchains)
Expand All @@ -137,9 +137,10 @@ platforms. This is true regardless of entries in the table below.
Windows binary (`node.exe`) in WSL will not work without workarounds such as
stdio redirection.

[^4]: Compiling Node.js for x86 Windows is currently impossible due to
issues with version 10.1 of the V8 engine. Support will come back to its
previous status as soon as possible.
[^4]: Running Node.js on x86 Windows should work and binaries
are provided. However, tests in our infrastructure only run on WoW64.
Furthermore, compiling on x86 Windows is Experimental and
may not be possible.

[^5]: Our macOS x64 Binaries are compiled with 10.15 as a target. Xcode11 is
required to compile.
Expand Down Expand Up @@ -538,7 +539,7 @@ When modifying only the JS layer in `lib`, it is possible to externally load it
without modifying the executable:

```console
$ ./configure --node-builtin-modules-path $(pwd)
$ ./configure --node-builtin-modules-path "$(pwd)"
```

The resulting binary won't include any JS files and will try to load them from
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.2.0">18.2.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.3.0">18.3.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.2.0">18.2.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.1.0">18.1.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.0.0">18.0.0</a><br/>
</td>
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,13 @@ ADDONS_BINDING_SOURCES := \
$(filter-out test/addons/??_*/*.h, $(wildcard test/addons/*/*.h))

ADDONS_PREREQS := config.gypi \
deps/npm/node_modules/node-gyp/package.json tools/build-addons.js \
deps/npm/node_modules/node-gyp/package.json tools/build-addons.mjs \
deps/uv/include/*.h deps/v8/include/*.h \
src/node.h src/node_buffer.h src/node_object_wrap.h src/node_version.h

define run_build_addons
env npm_config_loglevel=$(LOGLEVEL) npm_config_nodedir="$$PWD" \
npm_config_python="$(PYTHON)" $(NODE) "$$PWD/tools/build-addons" \
npm_config_python="$(PYTHON)" $(NODE) "$$PWD/tools/build-addons.mjs" \
"$$PWD/deps/npm/node_modules/node-gyp/bin/node-gyp.js" \
$1
touch $2
Expand Down Expand Up @@ -679,21 +679,21 @@ ifneq ("","$(wildcard deps/v8/tools/run-tests.py)")
# Related CI job: node-test-commit-v8-linux
test-v8: v8 ## Runs the V8 test suite on deps/v8.
export PATH="$(NO_BIN_OVERRIDE_PATH)" && \
deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) $(V8_TEST_OPTIONS) \
$(PYTHON) deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) $(V8_TEST_OPTIONS) \
mjsunit cctest debugger inspector message preparser \
$(TAP_V8)
$(info Testing hash seed)
$(MAKE) test-hash-seed

test-v8-intl: v8
export PATH="$(NO_BIN_OVERRIDE_PATH)" && \
deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) \
$(PYTHON) deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) \
intl \
$(TAP_V8_INTL)

test-v8-benchmarks: v8
export PATH="$(NO_BIN_OVERRIDE_PATH)" && \
deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) \
$(PYTHON) deps/v8/tools/run-tests.py --gn --arch=$(V8_ARCH) \
benchmarks \
$(TAP_V8_BENCHMARKS)

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,8 @@ Primary GPG keys for Node.js Releasers (some Releasers sign with subkeys):
`8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600`
* **Myles Borins** <<myles.borins@gmail.com>>
`C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8`
* **RafaelGSS** <<rafael.nunu@hotmail.com>>
`890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4`
* **Richard Lau** <<rlau@redhat.com>>
`C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C`
* **Rod Vagg** <<rod@vagg.org>>
Expand All @@ -706,6 +708,7 @@ gpg --keyserver hkps://keys.openpgp.org --recv-keys 71DCFD284A79C3B38668286BC97E
gpg --keyserver hkps://keys.openpgp.org --recv-keys 61FC681DFB92A079F1685E77973F295594EC4689
gpg --keyserver hkps://keys.openpgp.org --recv-keys 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600
gpg --keyserver hkps://keys.openpgp.org --recv-keys C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8
gpg --keyserver hkps://keys.openpgp.org --recv-keys 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4
gpg --keyserver hkps://keys.openpgp.org --recv-keys C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C
gpg --keyserver hkps://keys.openpgp.org --recv-keys DD8F2338BAE7501E3DD5AC78C273792F7D83545D
gpg --keyserver hkps://keys.openpgp.org --recv-keys A48C2BEE680E841632CD4E44F07496B3EB3C1762
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Report security bugs in Node.js via [HackerOne](https://hackerone.com/nodejs).

Your report will be acknowledged within 5 days, and youll receive a more
Your report will be acknowledged within 5 days, and you'll receive a more
detailed response to your report within 10 days indicating the next steps in
handling your submission.

Expand Down Expand Up @@ -49,7 +49,7 @@ Here is the security disclosure policy for Node.js

* This process can take some time, especially when coordination is required
with maintainers of other projects. Every effort will be made to handle the
bug in as timely a manner as possible; however, its important that we follow
bug in as timely a manner as possible; however, it's important that we follow
the release process above to ensure that the disclosure is handled in a
consistent manner.

Expand Down
14 changes: 14 additions & 0 deletions benchmark/error/error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict';

const common = require('../common.js');

const bench = common.createBenchmark(main, {
n: [1e7],
});

function main({ n }) {
bench.start();
for (let i = 0; i < n; ++i)
new Error('test');
bench.end(n);
}
21 changes: 21 additions & 0 deletions benchmark/error/node-error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'use strict';

const common = require('../common');

const bench = common.createBenchmark(main, {
n: [1e7],
}, {
flags: ['--expose-internals']
});

function main({ n }) {
const {
codes: {
ERR_INVALID_STATE,
}
} = require('internal/errors');
bench.start();
for (let i = 0; i < n; ++i)
new ERR_INVALID_STATE.TypeError('test');
bench.end(n);
}
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.13',
'v8_embedder_string': '-node.8',

##### V8 defaults for Node.js #####

Expand Down
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ def configure_node(o):
o['variables']['node_use_node_snapshot'] = b(
not cross_compiling and not options.shared)

if options.without_node_code_cache or options.node_builtin_modules_path:
if options.without_node_code_cache or options.without_node_snapshot or options.node_builtin_modules_path:
o['variables']['node_use_node_code_cache'] = 'false'
else:
# TODO(refack): fix this when implementing embedded code-cache when cross-compiling.
Expand Down
3 changes: 2 additions & 1 deletion deps/npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ If you're looking to manage multiple versions of **`node`** &/or **`npm`**, cons
* [**`nodenv`**](https://github.com/nodenv/nodenv)
* [**`asdf-nodejs`**](https://github.com/asdf-vm/asdf-nodejs)
* [**`nvm-windows`**](https://github.com/coreybutler/nvm-windows)
* [**`fnm`**](https://github.com/Schniz/fnm)

### Usage

Expand All @@ -49,7 +50,7 @@ npm <command>
* [**Documentation**](https://docs.npmjs.com/) - Official docs & how-tos for all things **npm**
* Note: you can also search docs locally with `npm help-search <query>`
* [**Bug Tracker**](https://github.com/npm/cli/issues) - Search or submit bugs against the CLI
* [**Roadmap**](https://github.com/npm/roadmap) - Track & follow along with our public roadmap
* [**Roadmap**](https://github.com/orgs/github/projects/4247/views/1?filterQuery=npm) - Track & follow along with our public roadmap
* [**Feedback**](https://github.com/npm/feedback) - Contribute ideas & discussion around the npm registry, website & CLI
* [**RFCs**](https://github.com/npm/rfcs) - Contribute ideas & specifications for the API/design of the npm CLI
* [**Service Status**](https://status.npmjs.org/) - Monitor the current status & see incident reports for the website & registry
Expand Down
2 changes: 2 additions & 0 deletions deps/npm/docs/content/commands/npm-bin.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Print the folder where npm will install executables.

* Default: false
* Type: Boolean
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
instead.

Operates in "global" mode, so that packages are installed into the `prefix`
folder instead of the current working directory. See
Expand Down
Loading