Skip to content

Commit e6817bd

Browse files
Merge node v12.16.3
Merges the changes from the node v12.16.3 release into nodejs-mobile.
2 parents eaaef04 + 63d1e08 commit e6817bd

File tree

4,441 files changed

+338167
-208092
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,441 files changed

+338167
-208092
lines changed

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ module.exports = {
8585
'comma-style': 'error',
8686
'computed-property-spacing': 'error',
8787
'constructor-super': 'error',
88+
'default-case-last': 'error',
8889
'dot-location': ['error', 'property'],
8990
'dot-notation': 'error',
9091
'eol-last': 'error',
@@ -244,6 +245,10 @@ module.exports = {
244245
selector: "CallExpression[callee.property.name='strictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression']):not([arguments.1.type='UnaryExpression'])",
245246
message: 'The first argument should be the `actual`, not the `expected` value.',
246247
},
248+
{
249+
selector: "CallExpression[callee.name='isNaN']",
250+
message: 'Use Number.isNaN() instead of the global isNaN() function.',
251+
},
247252
],
248253
/* eslint-enable max-len */
249254
'no-return-await': 'error',
@@ -269,6 +274,7 @@ module.exports = {
269274
functions: false,
270275
variables: false,
271276
}],
277+
'no-useless-backreference': 'error',
272278
'no-useless-call': 'error',
273279
'no-useless-catch': 'error',
274280
'no-useless-concat': 'error',

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
!.gitkeep
2020
!.mailmap
2121
!.nycrc
22-
!.travis.yml
2322
!.eslintrc.yaml
2423
!.cpplint
2524

@@ -33,6 +32,7 @@
3332
/doc/api.xml
3433
/node
3534
/node_g
35+
/gon-config.json
3636
/*.exe
3737
/*.swp
3838
/out
@@ -45,8 +45,8 @@
4545
/config_fips.gypi
4646

4747
# === Rules for MSVS artifacts ===
48-
/Debug
49-
/Release
48+
Debug/
49+
Release/
5050
*.sln
5151
*.suo
5252
*.vcxproj*

.mailmap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Amery <[email protected]> 子丶言 <[email protected]>
2323
Amit Bendor <[email protected]>
2424
Anatoli Papirovski <[email protected]> <[email protected]>
2525
Andreas Offenhaeuser <[email protected]> anoff <[email protected]>
26+
2627
Andy Bettisworth <[email protected]>
2728
Angel Stoyanov <[email protected]> atstojanov <[email protected]>
2829
@@ -250,6 +251,7 @@ Masato Ohba <[email protected]>
250251
251252
252253
254+
253255
Matt Lang <[email protected]> matt-in-a-hat <[email protected]>
254256
Matt Reed <[email protected]> matthewreed26 <[email protected]>
255257
@@ -408,6 +410,7 @@ Travis Meisenheimer <[email protected]> <[email protected]>
408410
409411
410412
Tyler Larson <[email protected]>
413+
411414
Viktor Karpov <[email protected]> vitkarpov <[email protected]>
412415
Vincent Voyer <[email protected]>
413416
Vladimir de Turckheim <[email protected]>
@@ -423,6 +426,7 @@ Wilson Lin <[email protected]>
423426
424427
Xavier J Ortiz <[email protected]>
425428
429+
426430
Yazhong Liu <[email protected]> Yazhong Liu <[email protected]>
427431
Yazhong Liu <[email protected]> Yorkie <[email protected]>
428432
Yazhong Liu <[email protected]> Yorkie <[email protected]>

.travis.yml

Lines changed: 0 additions & 91 deletions
This file was deleted.

AUTHORS

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2636,7 +2636,7 @@ Charles Samborski <[email protected]>
26362636
26372637
yoshimoto koki <[email protected]>
26382638
Ilarion Halushka <[email protected]>
2639-
Yael Hermon <yaelhe@wix.com>
2639+
Yael Hermon <yaelherm@gmail.com>
26402640
Mitch Hankins <[email protected]>
26412641
Mikko Rantanen <[email protected]>
26422642
wenjun ye <[email protected]>
@@ -2945,5 +2945,81 @@ Chris Oyler <[email protected]>
29452945
Jesper Ek <[email protected]>
29462946
29472947
jens-cappelle <[email protected]>
2948+
bruce-one <[email protected]>
2949+
Jason Macgowan <[email protected]>
2950+
Vincent Dhennin <[email protected]>
2951+
Alex Zherdev <[email protected]>
2952+
2953+
Tchoupinax <[email protected]>
2954+
Sebastien Ahkrin <[email protected]>
2955+
Michael Lehenbauer <[email protected]>
2956+
Harendra Singh <[email protected]>
2957+
Sam Foxman <[email protected]>
2958+
Marek Łabuz <[email protected]>
2959+
Reza Fatahi <[email protected]>
2960+
Priyanka Kore <[email protected]>
2961+
Jan-Philip Gehrcke <[email protected]>
2962+
Maël Nison <[email protected]>
2963+
qualitymanifest <[email protected]>
2964+
Rosen Penev <[email protected]>
2965+
Jeremy Albright <[email protected]>
2966+
Giovanni Campagna <[email protected]>
2967+
Donggeon Lim <[email protected]>
2968+
Tim Costa <[email protected]>
2969+
rene.herrmann <[email protected]>
2970+
Derek Lewis <[email protected]>
2971+
Kirill Ponomarev <[email protected]>
2972+
2973+
Tadao Iseki <[email protected]>
2974+
Diego Lafuente <[email protected]>
2975+
Andrew Kuzmenko <[email protected]>
2976+
David Newman <[email protected]>
2977+
Andrey Hohutkin <[email protected]>
2978+
A. Volgin <[email protected]>
2979+
Chris Osborn <[email protected]>
2980+
2981+
Taylor Zane Glaeser <[email protected]>
2982+
2983+
Santosh Yadav <[email protected]>
2984+
kresimirfranin <[email protected]>
2985+
Colin Grant <[email protected]>
2986+
Ryan Schmidt <[email protected]>
2987+
Ronald J Kimball <[email protected]>
2988+
Vighnesh Raut <[email protected]>
2989+
SpaceRacet5w2A6l0I <[email protected]>
2990+
Alexander Wang <[email protected]>
2991+
carterbancroft <[email protected]>
2992+
Egor Pavlov <[email protected]>
2993+
Parker Bjur <[email protected]>
2994+
Yakov Litvin <[email protected]>
2995+
Eran Levin <[email protected]>
2996+
Alexander Smarus <[email protected]>
2997+
kenzo-spaulding <[email protected]>
2998+
Rusty Conover <[email protected]>
2999+
3000+
ConorDavenport <[email protected]>
3001+
Dylan Coakley <[email protected]>
3002+
3003+
Conor ONeill <[email protected]>
3004+
3005+
Swagat Konchada <[email protected]>
3006+
Yuhanun Citgez <[email protected]>
3007+
Danielle Adams <[email protected]>
3008+
Andrey Pechkurov <[email protected]>
3009+
3010+
3011+
Eric Eastwood <[email protected]>
3012+
3013+
3014+
Vita Batrla <[email protected]>
3015+
André Draszik <[email protected]>
3016+
ProdipRoy89 <[email protected]>
3017+
Andrew Neitsch <[email protected]>
3018+
RamanandPatil <[email protected]>
3019+
forfun414 <[email protected]>
3020+
David Gilbertson <[email protected]>
3021+
Sergey Zelenov <[email protected]>
3022+
Eric Bickle <[email protected]>
3023+
29483024

29493025
# Generated by tools/update-authors.js

BUILDING.md

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ file a new issue.
2828
* [Running Coverage](#running-coverage)
2929
* [Building the documentation](#building-the-documentation)
3030
* [Building a debug build](#building-a-debug-build)
31+
* [Building an ASAN build](#building-an-asan-build)
32+
* [Troubleshooting Unix and macOS builds](#troubleshooting-unix-and-macos-builds)
3133
* [Windows](#windows)
3234
* [Prerequisites](#prerequisites)
3335
* [Option 1: Manual install](#option-1-manual-install)
3436
* [Option 2: Automated install with Boxstarter](#option-2-automated-install-with-boxstarter)
35-
* [Building Node.js](#building-nodejs-1)
37+
* [Building Node.js](#building-nodejs-2)
3638
* [Android/Android-based devices (e.g. Firefox OS)](#androidandroid-based-devices-eg-firefox-os)
3739
* [`Intl` (ECMA-402) support](#intl-ecma-402-support)
3840
* [Default: `small-icu` (English only) support](#default-small-icu-english-only-support)
@@ -42,7 +44,7 @@ file a new issue.
4244
* [Building without Intl support](#building-without-intl-support)
4345
* [Unix/macOS](#unixmacos-1)
4446
* [Windows](#windows-2)
45-
* [Use existing installed ICU (Unix/macOS only)](#use-existing-installed-icu-unixmacOS-only)
47+
* [Use existing installed ICU (Unix/macOS only)](#use-existing-installed-icu-unixmacos-only)
4648
* [Build with a specific ICU](#build-with-a-specific-icu)
4749
* [Unix/macOS](#unixmacos-2)
4850
* [Windows](#windows-3)
@@ -164,7 +166,7 @@ Binaries at <https://nodejs.org/download/release/> are produced on:
164166
| Binary package | Platform and Toolchain |
165167
| --------------------- | ------------------------------------------------------------------------ |
166168
| aix-ppc64 | AIX 7.1 TL05 on PPC64BE with GCC 6 |
167-
| darwin-x64 (and .pkg) | macOS 10.11, Xcode Command Line Tools 8 with -mmacosx-version-min=10.10 |
169+
| darwin-x64 (and .pkg) | macOS 10.15, Xcode Command Line Tools 11 with -mmacosx-version-min=10.10 |
168170
| linux-arm64 | CentOS 7 with devtoolset-6 / GCC 6 |
169171
| linux-armv7l | Cross-compiled on Ubuntu 16.04 x64 with [custom GCC toolchain](https://github.com/rvagg/rpi-newer-crosstools) |
170172
| linux-ppc64le | CentOS 7 with devtoolset-6 / GCC 6 <sup>[7](#fn7)</sup> |
@@ -249,6 +251,7 @@ Installation via Linux package manager can be achieved with:
249251
* Fedora: `sudo dnf install python gcc-c++ make`
250252
* CentOS and RHEL: `sudo yum install python gcc-c++ make`
251253
* OpenSUSE: `sudo zypper install python gcc-c++ make`
254+
* Arch Linux, Manjaro: `sudo pacman -S python gcc make`
252255

253256
FreeBSD and OpenBSD users may also need to install `libexecinfo`.
254257

@@ -494,6 +497,33 @@ $ gdb /opt/node-debug/node core.node.8.1535359906
494497
$ backtrace
495498
```
496499

500+
#### Building an ASAN build
501+
502+
[ASAN](https://github.com/google/sanitizers) can help detect various memory
503+
related bugs. ASAN builds are currently only supported on linux.
504+
If you want to check it on Windows or macOS or you want a consistent toolchain
505+
on Linux, you can try [Docker](https://www.docker.com/products/docker-desktop)
506+
(using an image like `gengjiawen/node-build:2020-02-14`).
507+
508+
The `--debug` is not necessary and will slow down build and testing, but it can
509+
show clear stacktrace if ASAN hits an issue.
510+
511+
``` console
512+
$ ./configure --debug --enable-asan && make -j4
513+
$ make test-only
514+
```
515+
516+
#### Troubleshooting Unix and macOS builds
517+
518+
Stale builds can sometimes result in `file not found` errors while building.
519+
This and some other problems can be resolved with `make distclean`. The
520+
`distclean` recipe aggressively removes build artifacts. You will need to
521+
build again (`make -j4`). Since all build artifacts have been removed, this
522+
rebuild may take a lot more time than previous builds. Additionally,
523+
`distclean` removes the file that stores the results of `./configure`. If you
524+
ran `./configure` with non-default options (such as `--debug`), you will need
525+
to run it again before invoking `make -j4`.
526+
497527
### Windows
498528

499529
#### Prerequisites
@@ -531,7 +561,6 @@ Optional requirements for compiling for Windows 10 on ARM (ARM64):
531561
* Windows 10 SDK 10.0.17763.0 or newer
532562

533563
##### Option 2: Automated install with Boxstarter
534-
<a name="boxstarter"></a>
535564

536565
A [Boxstarter](https://boxstarter.org/) script can be used for easy setup of
537566
Windows systems with all the required prerequisites for Node.js development.
@@ -542,7 +571,7 @@ packages:
542571
Unix tools added to the `PATH`.
543572
* [Python 3.x](https://chocolatey.org/packages/python) and
544573
[legacy Python](https://chocolatey.org/packages/python2)
545-
* [Visual Studio 2017 Build Tools](https://chocolatey.org/packages/visualstudio2017buildtools)
574+
* [Visual Studio 2019 Build Tools](https://chocolatey.org/packages/visualstudio2019buildtools)
546575
with [Visual C++ workload](https://chocolatey.org/packages/visualstudio2017-workload-vctools)
547576
* [NetWide Assembler](https://chocolatey.org/packages/nasm)
548577

0 commit comments

Comments
 (0)