Michaël Zasso
813052119e
2020-04-14, Version 13.13.0 (Current)
...
Notable changes:
New file system APIs:
* Added a new function, `fs.readv` (with sync and promisified versions).
This function takes an array of `ArrayBufferView` elements and will
write the data it reads sequentially to the buffers
(Sk Sajidul Kadir). https://github.com/nodejs/node/pull/32356
* A new overload is available for `fs.readSync`, which allows to
optionally pass any of the `offset`, `length` and `position`
parameters. https://github.com/nodejs/node/pull/32460
Other changes:
* dns:
* Added the `dns.ALL` flag, that can be passed to `dns.lookup()` with
`dns.V4MAPPED` to return resolved IPv6 addresses as well as IPv4
mapped IPv6 addresses (murgatroid99).
https://github.com/nodejs/node/pull/32183
* http:
* The default maximum HTTP header size was changed from 8KB to 16KB
(rosaxny). https://github.com/nodejs/node/pull/32520
* n-api:
* Calls to `napi_call_threadsafe_function` from the main thread can
now return the `napi_would_deadlock` status in certain
circumstances (Gabriel Schulhof).
https://github.com/nodejs/node/pull/32689
* util:
* Added a new `maxStrLength` option to `util.inspect`, to control the
maximum length of printed strings. Its default value is `Infinity`
(rosaxny). https://github.com/nodejs/node/pull/32392
* worker:
* Added support for passing a `transferList` along with `workerData`
to the `Worker` constructor (Juan José Arboleda).
https://github.com/nodejs/node/pull/32278
New core collaborators:
With this release, we welcome three new Node.js core collaborators:
* himself65. https://github.com/nodejs/node/pull/32734
* flarna (Gerhard Stoebich). https://github.com/nodejs/node/pull/32620
* mildsunrise (Alba Mendez). https://github.com/nodejs/node/pull/32525
PR-URL: https://github.com/nodejs/node/pull/32813
2020-04-14 18:11:12 +02:00
Jesus Hernandez
611dbf8d7f
src: removes unused v8::Integer and v8::Array namespace
...
PR-URL: https://github.com/nodejs/node/pull/32779
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
2020-04-13 13:28:44 +02:00
Juan José Arboleda
c8a007f91e
src: remove unused v8::TryCatch namespace
...
PR-URL: https://github.com/nodejs/node/pull/32729
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2020-04-13 13:28:43 +02:00
himself65
ea1785597c
src: remove duplicated code
...
PR-URL: https://github.com/nodejs/node/pull/32719
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2020-04-12 13:00:56 +02:00
himself65
1a01ac3425
perf_hooks: allow omitted parameters in 'performance.measure'
...
Make `startMark` and `endMark` parameters optional.
PR-URL: https://github.com/nodejs/node/pull/32651
Fixes: https://github.com/nodejs/node/issues/32647
Refs: https://www.w3.org/TR/user-timing-2/#measure-method
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-12 13:00:55 +02:00
Gabriel Schulhof
3907de7d24
n-api: detect deadlocks in thread-safe function
...
We introduce status `napi_would_deadlock` to be used as a return status
by `napi_call_threadsafe_function` if the call is made with
`napi_tsfn_blocking` on the main thread and the queue is full.
PR-URL: https://github.com/nodejs/node/pull/32689
Fixes: https://github.com/nodejs/node/issues/32615
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Chengzhong Wu <legendecas@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2020-04-11 10:12:59 +02:00
Sam Roberts
1763649c51
src: sync access for report and openssl options
...
Audited usage of per-process OpenSSL and Report options, adding two
required mutexes.
Also documented existence and typical use of the per-process cli option
mutex.
PR-URL: https://github.com/nodejs/node/pull/32618
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2020-04-11 10:12:58 +02:00
Tobias Nießen
246b789771
src: refactor to avoid goto in node_file.cc
...
PR-URL: https://github.com/nodejs/node/pull/32637
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-04-11 10:12:57 +02:00
d77998096b
src: munmap(2) upon class instance destructor
...
Replace `OnScopeLeave` with a class whose instance destructor performs
the munmap(2).
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com >
Fixes: https://github.com/nodejs/node/issues/32532
PR-URL: https://github.com/nodejs/node/pull/32570
Co-Authored-By: Anna Henningsen <github@addaleax.net >
Co-Authored-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
2020-04-11 10:12:56 +02:00
Santiago Gimeno
dd74601f96
net: fix crash if POLLHUP is received
...
If the `onread` socket option is used and a `POLLHUP` event is received,
libuv returns `UV_EOF` along with a `NULL` buffer in the read callback,
causing the crash. Deal with this case.
Fixes: https://github.com/nodejs/node/issues/31823
PR-URL: https://github.com/nodejs/node/pull/32590
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-11 10:12:55 +02:00
himself65
1fb4f9d922
src: fix warnings on SPrintF
...
PR-URL: https://github.com/nodejs/node/pull/32558
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-11 10:12:55 +02:00
Tobias Nießen
3b5c4fbc7c
src: replace goto with lambda in options parser
...
PR-URL: https://github.com/nodejs/node/pull/32635
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-11 10:06:06 +02:00
Anna Henningsen
055c5686ad
src,test: add regression test for nested Worker termination
...
This adds a regression test for terminating a Worker inside which
another Worker is running.
PR-URL: https://github.com/nodejs/node/pull/32623
Refs: https://github.com/nodejs/node/pull/32531
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2020-04-11 10:06:00 +02:00
Nick Kreeger
42a28d0214
src: fix extra includes of "env.h" and "env-inl.h"
...
Due to how the Environment class is used throughout the codebase, there
are a log of includes referencing eitehr env.h or env-inl.h.
This commit cleans up the remaining extra includes of 'env.h' or
'env-inl.h' and adds forward declarations of the Environment class.
PR-URL: https://github.com/nodejs/node/pull/32293
Refs: https://github.com/nodejs/node/issues/27531
Fixes: https://github.com/nodejs/node/issues/27531
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-11 10:05:45 +02:00
James M Snell
fcfde57806
src: avoid using elevated v8 namespaces in node_perf.h
...
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/32468
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-04-11 10:05:41 +02:00
James M Snell
9600332c53
src: avoid using elevated v8 namespaces in node_errors.h
...
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/32468
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-04-11 10:05:41 +02:00
James M Snell
62db9a0678
src: minor http2 refactorings
...
* Simplify Http2Priority struct
* BooleanValue => IsTrue/IsFalse
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/32551
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-04-11 10:05:40 +02:00
James M Snell
8f766e8397
src: rename http2 class and suppress compile warnings
...
Suppress compile warnings on Windows, rename class for
consistent styling.
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/32551
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-04-11 10:05:39 +02:00
James M Snell
afc6a25f42
src: use smart pointers for nghttp2 objects
...
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/32551
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2020-04-11 10:05:39 +02:00
Anna Henningsen
4df3ac2a63
src: remove loop_init_failed_ from Worker class
...
There’s no reason for this to not be stored alongside the loop
data structure itself.
PR-URL: https://github.com/nodejs/node/pull/32562
Refs: https://github.com/nodejs/node/pull/32344
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Denys Otrishko <shishugi@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-11 10:05:39 +02:00
Anna Henningsen
0faaa7c84c
src: clean up worker thread creation code
...
Instead of setting and then in the case of error un-setting properties,
only set them when no error occurs.
Refs: https://github.com/nodejs/node/pull/32344
PR-URL: https://github.com/nodejs/node/pull/32562
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Denys Otrishko <shishugi@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-11 10:05:39 +02:00
Anna Henningsen
c09552063b
report: add missing locks for report_on_fatalerror accessors
...
Overlooked in 2fa74e3e38 .
Refs: https://github.com/nodejs/node/pull/32207
PR-URL: https://github.com/nodejs/node/pull/32535
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2020-04-11 10:05:38 +02:00
Anna Henningsen
f284d599bb
src: move JSONWriter into its own file
...
The JSONWriter feature is not inherently related to the report
feature in any way.
As a drive-by fix, remove a number of unused header includes.
PR-URL: https://github.com/nodejs/node/pull/32552
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
2020-04-11 10:03:12 +02:00
Anna Henningsen
e066584d94
src: align PerformanceState class name with conventions
...
Class names are written in UpperCamelCase. Otherwise, this looks like
it’s a variable, not a class name.
PR-URL: https://github.com/nodejs/node/pull/32539
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-11 10:03:12 +02:00
Alex R
8597df48f7
http: fix incorrect headersTimeout measurement
...
For keep-alive connections, the headersTimeout may fire during
subsequent request because the measurement was reset after
a request and not before a request.
PR-URL: https://github.com/nodejs/node/pull/32329
Fixes: https://github.com/nodejs/node/issues/27363
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
2020-04-11 10:01:16 +02:00
Anna Henningsen
4acd7f4390
worker: do not emit 'exit' events during process.exit()
...
Do not emit `'exit'` events caused by recursively stopping all
running Workers from inside the `process.exit()` call.
PR-URL: https://github.com/nodejs/node/pull/32546
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2020-04-11 10:01:15 +02:00
Anna Henningsen
4e5271acfb
tracing: do not attempt to call into JS when disallowed
...
PR-URL: https://github.com/nodejs/node/pull/32548
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-04-11 10:01:15 +02:00
Sam Roberts
04237eca55
src: handle report options on fatalerror
...
Follow on to https://github.com/nodejs/node/pull/32207 , 3 other options
are also not respected under situations that the isolate is not
available.
PR-URL: https://github.com/nodejs/node/pull/32497
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-03-31 18:09:00 -04:00
James M Snell
5080491ae4
src: refactoring and cleanup of node_i18n
...
Signed-off-by: James M Snell <jasnell@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/32438
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2020-03-31 18:08:59 -04:00
murgatroid99
e14317a840
dns: add dns.ALL hints flag constant
...
PR-URL: https://github.com/nodejs/node/pull/32183
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 19:18:56 +02:00
Ben Noordhuis
2c32e59d8d
crypto: clear openssl error stack after en/decrypt
...
The publicEncrypt/privateDecrypt/etc. family of functions didn't clear
OpenSSL's error stack on early return.
Notably, trying to use an encrypted key with the wrong passphrase left
an error on the stack that made subsequent encrypt or decrypt operations
fail, even with an unencrypted key.
Fixes: https://github.com/nodejs/node/issues/32240
PR-URL: https://github.com/nodejs/node/pull/32248
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2020-03-30 19:18:56 +02:00
himself65
e2b08f0ea8
src: remove unnecessary 'Local.As' operation
...
PR-URL: https://github.com/nodejs/node/pull/32286
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 19:18:55 +02:00
Harshitha KP
833d78afcf
worker: runtime error on pthread creation
...
With large number of worker threads pthread
fails with hard assertion.
Instead of hard assertion throw a runtime error.
PR-URL: https://github.com/nodejs/node/pull/32344
Fixes: https://github.com/nodejs/node/issues/32319
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 19:18:50 +02:00
Sk Sajidul Kadir
30d55a3517
fs: add fs.readv()
...
Fixes: https://github.com/nodejs/node/issues/2298
PR-URL: https://github.com/nodejs/node/pull/32356
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 19:18:41 +02:00
Christian Niederer
1e76bc67dd
src: check for overflow when extending AliasedBufferBase
...
When resizing an aliased_buffer check if the new size will overflow.
PR-URL: https://github.com/nodejs/node/pull/31740
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2020-03-30 19:18:38 +02:00
Gabriel Schulhof
c71736efd8
src: unify Linux and FreeBSD large pages implem
...
dl_iterate_phdr(3) is also available for FreeBSD. This change adds the
same trimming code for the start and end of the .text section as on
Linux, making it work on FreeBSD, and removing the need for the
additional FreeBSD-specific check.
Manually tested on
* https://www.osboxes.org/freebsd/#freebsd-12-1-vbox
* https://www.osboxes.org/freebsd/#freebsd-11-vbox
* test-digitalocean-freebsd11-x64-2
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com >
PR-URL: https://github.com/nodejs/node/pull/32534
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
2020-03-30 19:18:22 +02:00
Harshitha KP
06bff18fa8
src: replace handle dereference with ContainerOf
...
this was influenced by https://github.com/nodejs/node/pull/32269
PR-URL: https://github.com/nodejs/node/pull/32298
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 19:18:21 +02:00
Syohei YOSHIDA
7d4ec42b3a
doc: fix profile type of --heap-prof-name
...
V8 CPU profile -> V8 heap profile
PR-URL: https://github.com/nodejs/node/pull/32404
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 19:18:20 +02:00
himself65
b973b938a2
src: enhance template function 'MakeUtf8String'
...
PR-URL: https://github.com/nodejs/node/pull/32322
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
2020-03-30 19:18:17 +02:00
unknown
bd9f4d2954
http: increase default header size from 8KB to 16KB
...
Fixes: https://github.com/nodejs/node/issues/27645
PR-URL: https://github.com/nodejs/node/pull/32520
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
2020-03-30 19:18:16 +02:00
Daniel Bevenius
fbf0493b05
src: fix compiler warnings in node_report_module
...
Currently, the following compiler warnings are generated:
../src/node_report_module.cc:
In function ‘void report::ShouldReportOnFatalError(
const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/node_report_module.cc:132:16: warning:
unused variable ‘env’ [-Wunused-variable]
132 | Environment* env = Environment::GetCurrent(info);
| ^~~
../src/node_report_module.cc:
In function ‘void report::SetReportOnFatalError(
const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/node_report_module.cc:138:16: warning:
unused variable ‘env’ [-Wunused-variable]
138 | Environment* env = Environment::GetCurrent(info);
| ^~~
This commit removes the unused variables.
PR-URL: https://github.com/nodejs/node/pull/32498
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Jiawen Geng <technicalcute@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 19:18:09 +02:00
himself65
1de9718b54
src: remove excess v8 namespace
...
PR-URL: https://github.com/nodejs/node/pull/32191
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 19:18:05 +02:00
Gabriel Schulhof and Ben Noordhuis
09cd7449e2
src: simplify large pages mapping code
...
* Introduce `OnScopeLeave` handler for cleaning up mmap()ed range(s).
* Factor out failure scenario at the bottom of the function with
`fail` label for use with `goto`.
* Do not allocate temporary range (`nmem`) on FreeBSD, because it is
not used.
The intention is that the steps involved in re-mapping to large pages
become more clearly visible.
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com >
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl >
PR-URL: https://github.com/nodejs/node/pull/32396
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: David Carlier <devnexen@gmail.com >
2020-03-30 19:18:03 +02:00
Juan José Arboleda
778dcc8f1a
src: clean v8 namespaces in env.cc file
...
PR-URL: https://github.com/nodejs/node/pull/32374
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2020-03-30 19:18:01 +02:00
Xavier Stouder
aa282276ec
src: check for empty maybe local
...
Using ToLocalChecked on MaybeLocal without verifying it's empty
can lead to unattempted crash.
PR-URL: https://github.com/nodejs/node/pull/32339
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 19:18:00 +02:00
Anna Henningsen
13377a0f0f
src: cleanup DestroyParam when Environment exits
...
Otherwise, this leaks memory if the weak callback is never called.
PR-URL: https://github.com/nodejs/node/pull/32421
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 19:18:00 +02:00
Myles Borins
21ae792504
Working on v13.12.1
...
PR-URL: https://github.com/nodejs/node/pull/32376
2020-03-26 18:46:19 -04:00
Myles Borins
f6a339ffaf
2020-03-26 Version 13.12.0 (Current)
...
macOS package notarization and a change in builder configuration:
The macOS binaries for this release, and future 13.x releases, are now
being compiled on macOS 10.15 (Catalina) with Xcode 11 to support
package notarization, a requirement for installing on .pkg files on
macOS 10.15 and later. Previous builds of Node.js 13.x were compiled on
macOS 10.11 (El Capitan) with Xcode 10. As binaries are still being
compiled to support a minimum of macOS 10.10 (Yosemite) we do not
anticipate this having a negative impact on Node.js 13.x users with
older versions of macOS.
Notable changes:
* build:
* macOS package notarization (Rod Vagg)
https://github.com/nodejs/node/pull/31459
* deps:
* upgrade npm to 6.14.4 (Ruy Adorno)
https://github.com/nodejs/node/pull/32495
* update to uvwasi 0.0.6 (Colin Ihrig)
https://github.com/nodejs/node/pull/32309
* upgrade to libuv 1.35.0 (Colin Ihrig)
https://github.com/nodejs/node/pull/32204
* lib:
* add --disable-proto option to cli (Gus Caplan)
https://github.com/nodejs/node/pull/32279
* node_report:
* move diagnostic reports to stable (Colin Ihrig)
https://github.com/nodejs/node/pull/32242
* worker:
* allow URL in Worker constructor (Antoine du HAMEL)
https://github.com/nodejs/node/pull/31664
* util:
* use a global symbol for `util.promisify.custom` (ExE Boss)
https://github.com/nodejs/node/pull/31672
PR-URL: https://github.com/nodejs/node/pull/32376
2020-03-26 14:49:44 -04:00
himself65
94952b4ac8
src: enhance C++ sprintf utility
...
PR-URL: https://github.com/nodejs/node/pull/32385
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com >
2020-03-26 13:58:58 -04:00
Anna Henningsen
e9e12b8f36
src: use single ObjectTemplate for TextDecoder
...
`ObjectTemplate`s are not garbage-collected like regular objects
(for some reason). It is sufficient to create a single template
anyway, so do that to address the memory leak.
Fixes: https://github.com/nodejs/node/issues/32424
PR-URL: https://github.com/nodejs/node/pull/32426
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2020-03-26 13:58:58 -04:00