node
node copied to clipboard
Node.js JavaScript runtime ✨🐢🚀✨
### build: fix pointer compression builds - Remove usage of deprecated V8::InitializeSandbox(). - External code space and pointer compression shared cage must be enabled when pointer compression builds are enabled....
### What is the problem this feature will solve? The crypto library currently lacks a generic key derivation function similar to [OpenSSL's `EVP_KDF` methods](https://wiki.openssl.org/index.php/EVP_Key_Derivation) and resembling [WebCrypto's `deriveKey`](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey). This proposal...
### Description This PR makes `node --run ` run commands from the package’s bin section as well. If the command is in both scripts and bin, the version in scripts...
The goal of this PR is to add a `test:watch:restarted` event to signal to the reporter that some tests have restarted while in watch mode. This will enable a trivial...
I added this class in 823d86c47ce15fba8875fcebd412593b02aab362 in 2018 when we did not yet use `std::optional`. The last uses were removed in 5b9bf39b47afcf26aaad810eec2ba8bdff904d4c, so remove it. Refs: https://github.com/nodejs/node/pull/24234 Refs: https://github.com/nodejs/node/pull/55368
Currently the [logic for filtering out watch related flags](https://github.com/nodejs/node/blob/25842c5e35efb45df169e591c775a3c4f853556d/lib/internal/main/watch_mode.js#L42-L55) before passing them to the watch target script is flawed, as it includes any flag (starting with `-`) that follows a...
Using a C++20 `concept` here makes `is_callable` much simpler than relying on SFINAE. It is equivalent for function types, `std::function`, lambdas, and classes with `operator()`, regardless of argument or return...
This PR fixes https://github.com/nodejs/node/issues/58161. When mocking synchronous callback-based APIs, the `MockFunctionContext` tracking mock calls won't be register until after the mock function finishes execution. Tests exercising callback-based code will likely...
Since `String::Write()` is deprecated, use `String::Write2()` instead. That requires us to compute the correct number of characters ahead of time but removes the need for dealing with the return value.
Since `String::Write()` is deprecated, use `String::WriteV2()` instead.