Skip to content

Commit 3f99951

Browse files
authored
Merge branch 'main' into fix-49848
2 parents 4c7229c + 51f4ff2 commit 3f99951

File tree

140 files changed

+2344
-881
lines changed

Some content is hidden

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

140 files changed

+2344
-881
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,5 +361,6 @@ module.exports = {
361361
WritableStream: 'readable',
362362
WritableStreamDefaultWriter: 'readable',
363363
WritableStreamDefaultController: 'readable',
364+
WebSocket: 'readable',
364365
},
365366
};

.github/CODEOWNERS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
/LICENSE @nodejs/tsc
2121
/onboarding.md @nodejs/tsc
2222

23-
# website
24-
/doc/api_assets @nodejs/website
25-
/doc/template.html @nodejs/website
26-
/tools/doc @nodejs/website
23+
# nodejs.org website
24+
/doc/api_assets @nodejs/nodejs-website
25+
/doc/template.html @nodejs/nodejs-website
26+
/tools/doc @nodejs/web-infra
2727

2828
# streams
2929

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ release.
3434
</tr>
3535
<tr>
3636
<td valign="top">
37-
<b><a href="doc/changelogs/CHANGELOG_V20.md#20.7.0">20.7.0</a></b><br/>
37+
<b><a href="doc/changelogs/CHANGELOG_V20.md#20.8.0">20.8.0</a></b><br/>
38+
<a href="doc/changelogs/CHANGELOG_V20.md#20.7.0">20.7.0</a><br/>
3839
<a href="doc/changelogs/CHANGELOG_V20.md#20.6.1">20.6.1</a><br/>
3940
<a href="doc/changelogs/CHANGELOG_V20.md#20.6.0">20.6.0</a><br/>
4041
<a href="doc/changelogs/CHANGELOG_V20.md#20.5.1">20.5.1</a><br/>

android_configure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def patch_android():
7070
GYP_DEFINES += " v8_target_arch=" + arch
7171
GYP_DEFINES += " android_target_arch=" + arch
7272
GYP_DEFINES += " host_os=" + host_os + " OS=android"
73+
GYP_DEFINES += " android_ndk_path=" + android_ndk_path
7374
os.environ['GYP_DEFINES'] = GYP_DEFINES
7475

7576
if os.path.exists("./configure"):

benchmark/error/format-list.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
'use strict';
2+
3+
const common = require('../common.js');
4+
5+
const bench = common.createBenchmark(main, {
6+
n: [1e7],
7+
input: [
8+
'',
9+
'a',
10+
'a,b',
11+
'a,b,c',
12+
'a,b,c,d',
13+
],
14+
type: [
15+
'undefined',
16+
'and',
17+
'or',
18+
],
19+
}, {
20+
flags: ['--expose-internals'],
21+
});
22+
23+
function main({ n, input, type }) {
24+
const {
25+
formatList,
26+
} = require('internal/errors');
27+
28+
const list = input.split(',');
29+
30+
if (type === 'undefined') {
31+
bench.start();
32+
for (let i = 0; i < n; ++i) {
33+
formatList(list);
34+
}
35+
bench.end(n);
36+
return;
37+
}
38+
39+
bench.start();
40+
for (let i = 0; i < n; ++i) {
41+
formatList(list, type);
42+
}
43+
bench.end(n);
44+
}

benchmark/streams/writable-manywrites.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
const Writable = require('stream').Writable;
55

66
const bench = common.createBenchmark(main, {
7-
n: [2e6],
7+
n: [1e5],
88
sync: ['yes', 'no'],
99
writev: ['yes', 'no'],
1010
callback: ['yes', 'no'],
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, {
1313

1414
function main({ n, sync, writev, callback, len }) {
1515
const b = Buffer.allocUnsafe(len);
16-
const s = new Writable();
16+
const s = new Writable({ highWaterMark: 16 * 1024 });
1717
sync = sync === 'yes';
1818

1919
const writecb = (cb) => {

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
],
231231
},],
232232
['OS == "android"', {
233-
'cflags': [ '-fPIC' ],
233+
'cflags': [ '-fPIC', '-I<(android_ndk_path)/sources/android/cpufeatures' ],
234234
'ldflags': [ '-fPIC' ]
235235
}],
236236
],

deps/openssl/openssl-cl_asm.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
'conditions': [
3-
['target_arch=="ppc64" and OS=="aix"', {
3+
['target_arch=="ppc64" and OS in ("aix", "os400")', {
44
'includes': ['config/archs/aix64-gcc-as/asm/openssl-cl.gypi'],
55
}, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', {
66
'includes': ['config/archs/linux-ppc64le/asm/openssl-cl.gypi'],

deps/openssl/openssl-cl_asm_avx2.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
'conditions': [
3-
['target_arch=="ppc64" and OS=="aix"', {
3+
['target_arch=="ppc64" and OS in ("aix", "os400")', {
44
'includes': ['config/archs/aix64-gcc-as/asm_avx2/openssl-cl.gypi'],
55
}, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', {
66
'includes': ['config/archs/linux-ppc64le/asm_avx2/openssl-cl.gypi'],

deps/openssl/openssl-cl_no_asm.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
'conditions': [
3-
['target_arch=="ppc64" and OS=="aix"', {
3+
['target_arch=="ppc64" and OS in ("aix", "os400")', {
44
'includes': ['config/archs/aix64-gcc-as/no-asm/openssl-cl.gypi'],
55
}, 'target_arch=="ppc64" and OS=="linux" and node_byteorder =="little"', {
66
'includes': ['config/archs/linux-ppc64le/no-asm/openssl-cl.gypi'],

0 commit comments

Comments
 (0)