node
node copied to clipboard
Node.js JavaScript runtime ✨🐢🚀✨
introduces a new N-API method `napi_create_buffer_from_arraybuffer` that allows the creation of a Buffer from an ArrayBuffer. This new method provides functionality similar to `napi_create_typedarray`, enabling developers to specify a byte...
This is an automated update of simdutf to 5.4.15.
Doing a round of fast cleanup of old open and stalled PRs. Making sure this [PR](https://github.com/nodejs/node/pull/50639) is moving along addressing the comments in the original discussion. I added the author...
vm: introduce vanilla contexts via vm.constants.DONT_CONTEXTIFY This implements a flavor of vm.createContext() and friends that creates a context without contextifying its global object. This is suitable when users want to...
### Affected URL(s) https://nodejs.org/docs/latest-v20.x/api/test.html#mocking ### Description of the problem On docs there missing explains about how to mock Error and catch it with `throws`.
This is the initial implementation addressing issue #53077. I've noticed the issue has been inactive for a while, so I attempted to resolve it by following the provided suggestions. While...
Hey, this PR should address issue #51299. I noticed that the issue has been stalled for months, even though a PR with the solution was practically accepted. I removed some...
### Version v22.5.1 ### Platform ```text Darwin Sukka-Macbook-Pro.local 24.0.0 Darwin Kernel Version 24.0.0: Mon Aug 12 21:27:51 PDT 2024; root:xnu-11215.1.10~5/RELEASE_ARM64_T6020 arm64 ``` ### Subsystem _No response_ ### What steps will...
Fixes: https://github.com/nodejs/node/issues/54551
In `macOS`, fsevents generated immediately before start watching may leak into the event callback. See: https://github.com/nodejs/node/issues/54450 for an explanation. This might be fixed at some point in `libuv` though it...