Rich Trott
53eefeb73e
buffer: remove unreachable code
...
Remove unreachable code from lib/buffer.js.
PR-URL: https://github.com/nodejs/node/pull/27445
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2019-04-30 17:47:27 +02:00
sujunfei
3711684ccf
test: add mustCall for parallel/test-net-connect-paused-connection
...
Add common.mustCall test on net.createServer callback and listen
callback in the parallel/test-net-connect-paused-connection
remove the mustCall of net.createServer callback
PR-URL: https://github.com/nodejs/node/pull/27463
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com >
2019-04-30 17:47:26 +02:00
heben
0e4f8788eb
test: add mustCallAtLeast to test-fs-read-stream-resume.js
...
add mustCallAtLeast to test-fs-read-stream-resume.js
PR-URL: https://github.com/nodejs/node/pull/27456
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-04-30 17:47:26 +02:00
陈健
e89b6fee3a
test: adding mustCall in test-fs-readfile-empty.js
...
PR-URL: https://github.com/nodejs/node/pull/27455
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com >
2019-04-30 17:47:26 +02:00
OneNail
457549b67d
test: add common.mustCall in test-http-abort-client.js
...
PR-URL: https://github.com/nodejs/node/pull/27449
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-04-30 17:47:26 +02:00
Yaphet Ye
f4124d5ba5
test: add mustCall to http-abort-queued test
...
PR-URL: https://github.com/nodejs/node/pull/27447
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com >
2019-04-30 17:47:25 +02:00
Anatoli Papirovski
9c842f4119
lib: remove Reflect.apply where appropriate
...
Using Reflect.apply where the callback context does not need
to change is unnecessary and less performant.
PR-URL: https://github.com/nodejs/node/pull/27349
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-04-30 17:47:22 +02:00
Rich Trott
8495e8bceb
meta: move Forrest Norvell to Collaborator Emeriti list
...
Consulted with Forrest. He thought this was appropriate as long as it
doesn't affect his ability to be on the Moderation Team.
PR-URL: https://github.com/nodejs/node/pull/27437
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Forrest L Norvell <ogd@aoaioxxysz.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Weijia Wang <starkwang@126.com >
2019-04-30 08:17:34 +02:00
sinoon
e21f035666
test: add mustCall in test-fs-readfilesync-pipe-large.js
...
PR-URL: https://github.com/nodejs/node/pull/27458
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
2019-04-30 08:17:34 +02:00
XGHeaven
1dd0205f10
test: add mustCall to test-dgram-connect-send-multi-buffer-copy.js
...
PR-URL: https://github.com/nodejs/node/pull/27465
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Yuta Hiroto <hello@hiroppy.me >
2019-04-30 08:17:34 +02:00
Daiki Ihara
0dfe5bebb2
test: add test of policy about parse error
...
PR-URL: https://github.com/nodejs/node/pull/26873
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-04-30 08:17:34 +02:00
Anna Henningsen
33702913b1
src: prefer v8::Global over node::Persistent
...
`v8::Global` is essentially a nicer variant of `node::Persistent` that,
in addition to reset-on-destroy, also implements move semantics.
This commit makes the necessary replacements, removes
`node::Persistent` and (now-)unnecessary inclusions of the
`node_persistent.h` header, and makes some of the functions that
take Persistents as arguments more generic so that they work with all
`v8::PersistentBase` flavours.
PR-URL: https://github.com/nodejs/node/pull/27287
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-04-30 08:17:33 +02:00
xuqinggang
eeab007b25
test: add mustCall to test-net-after-close test
...
PR-URL: https://github.com/nodejs/node/pull/27459
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-04-30 08:17:33 +02:00
Ruben Bridgewater
8e876e60aa
console: use consolePropAttributes for k-bind properties (reland)
...
This is a reland of https://github.com/nodejs/node/pull/26850 .
It was speculatively reverted but it turned out that this did not
cause any trouble.
PR-URL: https://github.com/nodejs/node/pull/27352
Refs: https://github.com/nodejs/node/pull/26943
Refs: https://github.com/nodejs/node/pull/26850
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-04-30 08:17:33 +02:00
Vse Mozhet Byt
7d1c90b614
meta: move @vsemozhetbyt to collaborator emeriti
...
PR-URL: https://github.com/nodejs/node/pull/27412
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com >
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-04-30 08:17:33 +02:00
Sam Roberts
30a72e8c7b
tls: allow enabling the TLS debug trace
...
Enable the same trace output that the OpenSSL s_client and s_server
support with their `-trace` option. This is invaluable when debugging
reports of TLS bugs as well as when debugging the internal TLS
implementation.
See:
- https://github.com/nodejs/node/issues/25383
- https://github.com/nodejs/node/issues/17936
- https://github.com/postmanlabs/postman-app-support/issues/5918#issuecomment-465311423
PR-URL: https://github.com/nodejs/node/pull/27376
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2019-04-30 08:17:33 +02:00
Sam Roberts
230a773e32
deps: update archs files for OpenSSL-1.1.1b
...
Ran:
$ cd deps/openssl/config; make
to update deps/openssl/config/archs/ with current configuration.
PR-URL: https://github.com/nodejs/node/pull/27376
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2019-04-30 08:17:32 +02:00
Sam Roberts
b68132e01a
deps: configure OpenSSL's SSL_trace to be built
...
OpenSSL doesn't compile `SSL_trace()` by default for historical reasons.
Add the enable-ssl-trace option to the OpenSSL Configure arguments.
PR-URL: https://github.com/nodejs/node/pull/27376
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2019-04-30 08:17:29 +02:00
Anna Henningsen
615d386390
child_process: only stop readable side of stream passed to proc
...
Closing the underlying resource completely has the unwanted side effect
that the stream can no longer be used at all, including passing it
to other child processes.
What we want to avoid is accidentally reading from the stream;
accordingly, it should be sufficient to stop its readable side
manually, and otherwise leave the underlying resource intact.
Fixes: https://github.com/nodejs/node/issues/27097
Refs: https://github.com/nodejs/node/pull/21209
PR-URL: https://github.com/nodejs/node/pull/27373
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2019-04-29 16:57:37 +02:00
wuchenkai
c1b04652f5
test: add "mustCall" to test-fs-readfile-unlink
...
Add common.mustCall to test-fs-readfile-unlink
PR-URL: https://github.com/nodejs/node/pull/27453
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-04-29 16:57:37 +02:00
cjihrig
b6c65c1351
test: add missing ToC entries
...
These modules were already documented, but not included in the
table of contents.
PR-URL: https://github.com/nodejs/node/pull/27434
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-04-29 16:57:37 +02:00
cjihrig
66bff5071f
test: document report helper module
...
PR-URL: https://github.com/nodejs/node/pull/27434
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-04-29 16:57:37 +02:00
cjihrig
2c335928cd
test: document NODE_SKIP_FLAG_CHECK
...
PR-URL: https://github.com/nodejs/node/pull/27434
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-04-29 16:57:36 +02:00
cjihrig
115d06cdbb
test: document NODE_TEST_KNOWN_GLOBALS
...
PR-URL: https://github.com/nodejs/node/pull/27434
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-04-29 16:57:36 +02:00
Weijia Wang
47d311b3f0
lib: remove outdated optimizations
...
PR-URL: https://github.com/nodejs/node/pull/27380
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Benedikt Meurer <benedikt.meurer@gmail.com >
2019-04-29 16:57:36 +02:00
nilianzhu
51fc672da9
test: add mustCallAtLeast to test-fs-read-stream-inherit
...
PR-URL: https://github.com/nodejs/node/pull/27457
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-04-29 16:57:36 +02:00
Chenxi Yuan
4b9d109518
test: add mustCall to test-dgram-implicit-bind.js
...
PR-URL: https://github.com/nodejs/node/pull/27452
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
2019-04-29 16:57:35 +02:00
zhoujiamin
c4d67f2af5
test: add common.mustCall test-dgram-listen-after-bind
...
PR-URL: https://github.com/nodejs/node/pull/27454
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
2019-04-29 16:57:35 +02:00
shenchen
23fb430e03
test: add mustCall to test-dgram-connect-send-callback-buffer
...
PR-URL: https://github.com/nodejs/node/pull/27466
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com >
2019-04-29 16:57:35 +02:00
hardfist
a37ca245ff
test: add mustCallAtLeast to test-fs-read-stream-fd test
...
PR-URL: https://github.com/nodejs/node/pull/27461
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-04-29 16:57:35 +02:00
Daniel Bevenius
cf84f20453
test: skip fs-copyfile-respect-permission if root
...
Currently, if this test is run as the root user the following
failure will occur:
=== release test-fs-copyfile-respect-permissions ===
Path: parallel/test-fs-copyfile-respect-permissions
assert.js:89
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Missing expected exception (check).
at Object.<anonymous>
(/node/test/parallel/test-fs-copyfile-respect-permissions.js:38:10)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
at internal/main/run_main_module.js:17:11
Command:
out/Release/node test/parallel/test-fs-copyfile-respect-permissions.js
[05:41|% 100|+ 2620|- 1]: Done
This commit adds a root user check and skips this test if running as the
user root.
PR-URL: https://github.com/nodejs/node/pull/27378
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
2019-04-29 16:57:34 +02:00
Anto Aravinth
149412ca02
repl: add autocomplete for filesystem modules
...
PR-URL: https://github.com/nodejs/node/pull/26648
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-04-29 16:57:34 +02:00
Joyee Cheung
7c25dce7ba
deps: V8: cherry-pick 5d0cf6b
...
Original commit message:
[snapshot] Use Handle to track name in `CodeSerializer::Deserialize`
The `Script::InitLineEnds(Handle<Script>(script, isolate));` line
may lead to objects being moved around on the heap, so it’s necessary
to use a `Handle` to track that.
This was causing crashes in Node.js in Debug mode when using the
code cache in combination with the CPU profiler.
Refs: https://github.com/nodejs/node/issues/27307
Change-Id: I392b4c00c6ebad44753f87fcbf2e3278ea7799a6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1575698
Reviewed-by: Jakob Gruber <jgruber@chromium.org >
Reviewed-by: Peter Marshall <petermarshall@chromium.org >
Commit-Queue: Peter Marshall <petermarshall@chromium.org >
Cr-Commit-Position: refs/heads/master@{#61036}
Refs: https://github.com/v8/v8/commit/5d0cf6bcd58aa63c86f2664c801538c4e731170b
PR-URL: https://github.com/nodejs/node/pull/27423
Fixes: https://github.com/nodejs/node/issues/27307
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2019-04-29 16:57:34 +02:00
xinyulee
7d80999454
test: add mustCall to net-can-reset-timeout
...
PR-URL: https://github.com/nodejs/node/pull/27462
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-04-29 16:57:34 +02:00
luoyu
9fa5ba8b3c
test: add mustCall to test-fs-readfile-pipe-large
...
PR-URL: https://github.com/nodejs/node/pull/27460
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com >
2019-04-29 16:57:34 +02:00
lixin.atom
e8d5b6226a
test: add "mustCall" for test-net-buffersize
...
PR-URL: https://github.com/nodejs/node/pull/27451
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com >
2019-04-29 16:57:33 +02:00
tongshouyu
d784ecb1ad
test: add mustCall to test-net-eaddrinuse test
...
PR-URL: https://github.com/nodejs/node/pull/27448
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-04-29 16:57:33 +02:00
jyjunyz
6fd1384a43
test: add mustcall in test-dgram-connect-send-callback-buffer-length
...
add mustcall() on client.bind callback
PR-URL: https://github.com/nodejs/node/pull/27464
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-04-29 16:57:33 +02:00
tonyhty
7a35077197
test: add mustCall to test-fs-readfile-pipe
...
PR-URL: https://github.com/nodejs/node/pull/27450
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-04-29 16:57:33 +02:00
Rongjian Zhang
af29ae0344
test: add mustCall to net-connect-buffer test
...
PR-URL: https://github.com/nodejs/node/pull/27446
Reviewed-By: Weijia Wang <starkwang@126.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-04-29 16:57:32 +02:00
Joyee Cheung
cfc7bdd303
benchmark: add benchmark for node -p
...
PR-URL: https://github.com/nodejs/node/pull/27320
Reviewed-By: James M Snell <jasnell@gmail.com >
2019-04-29 16:57:32 +02:00
Joyee Cheung
c2a03d58c3
lib: print to stdout/stderr directly instead of using console
...
This patch adds an internal function that prints to stdout or
stderr by directly writing to the known file descriptor, and
uses it internally in common cases to avoid the overhead
of the console implementation.
PR-URL: https://github.com/nodejs/node/pull/27320
Reviewed-By: James M Snell <jasnell@gmail.com >
2019-04-29 16:57:32 +02:00
Ruben Bridgewater
76af4f0d05
tools: prohibit assert.doesNotReject() in Node.js core
...
This makes sure we do not use `assert.doesNotReject()` anywhere in
our code base. This is just a simple wrapper that catches the
rejection and then rejects it again in case of an error. Thus, it is
not useful to do that.
The error message for `assert.doesNotThrow()` is also improved.
PR-URL: https://github.com/nodejs/node/pull/27402
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2019-04-29 16:57:28 +02:00
Michaël Zasso
36d61681e1
Working on v12.1.1
...
PR-URL: https://github.com/nodejs/node/pull/27440
2019-04-29 16:37:07 +02:00
Michaël Zasso
bf12414bbf
2019-04-29, Version 12.1.0 (Current)
...
Notable changes:
* intl:
* Update ICU to 64.2. This adds support for Japanese Era (Reiwa).
https://github.com/nodejs/node/pull/27361
* Fixes a bug in ICU that affected Node.js 12.0.0 in the case where
`new Date().toLocaleString()` was called with a non-default locale.
https://github.com/nodejs/node/pull/27415
* C++ API:
* Added an overload of `EmitAsyncDestroy` that can be used during
garbage collection.
https://github.com/nodejs/node/pull/27255
PR-URL: https://github.com/nodejs/node/pull/27440
v12.1.0
2019-04-29 14:36:39 +02:00
Joyee Cheung
d00014e599
process: reduce the number of internal frames in async stack trace
...
Previously, we call the JS land `runNextTicks` implementation
immediately from JS land after evaluating the main module or the
input, so these synchronous JS call frames would show up in the stack
trace of the async errors, which can be confusing. This patch moves
those calls into C++ so that more of these internal scheduler
implementation details can be hidden and the users can see a cleaner
a cleaner async JS stack trace.
PR-URL: https://github.com/nodejs/node/pull/27392
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Minwoo Jung <minwoo@nodesource.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
2019-04-29 14:32:29 +02:00
gengjiawen
dc510fb435
report: print common items first for readability
...
PR-URL: https://github.com/nodejs/node/pull/27367
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
2019-04-27 12:05:20 +02:00
Steven R. Loomis
3282ccb845
deps: backport ICU-20575 to fix err/crasher
...
- Floating patch for ICU 64.x
- includes test case
ICU Bug: https://unicode-org.atlassian.net/browse/ICU-20575
Backport of: https://github.com/unicode-org/icu/pull/634
Fixes: https://github.com/nodejs/node/issues/27418
PR-URL: https://github.com/nodejs/node/pull/27435
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2019-04-27 12:05:19 +02:00
Steven R. Loomis
e922a22725
deps: backport ICU-20558 to fix Intl crasher
...
- Floating patch for ICU 63.x and 64.x
- fixing crash in Intl when ICU data not found.
- Regression test from refack included.
Background:
- ICU-13778 (landed in ICU 63.1) fixed a bug but
added a regression.
- a recent v8 land in Node v12 (which one?) exposes
this bug to cause a crash when ICU data is not found.
ICU Bug: https://unicode-org.atlassian.net/browse/ICU-20558
Backport of: https://github.com/unicode-org/icu/pull/632
Fixes: https://github.com/nodejs/node/issues/27379
Co-authored-by: Refael Ackermann <refack@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/27415
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com >
2019-04-27 12:05:19 +02:00
gengjiawen
3614a00276
src: refactor deprecated UVException in node_file.cc
...
PR-URL: https://github.com/nodejs/node/pull/27280
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-04-27 11:36:09 +02:00