node
node copied to clipboard
Node.js JavaScript runtime ✨🐢🚀✨
https://github.com/nodejs/node/pull/45717 added `--watch-preserve-output`: > Disable the clearing of the console when watch mode restarts the process. However, when the process is "gracefully restarting" (if the process takes more than 500ms...
This PR moves a large function from `repl.js` into it's own file, `internal/repl/complete.js`. This is an attempt to slowly declutter the file.
## Problem: When unsubscribing a publisher that has already been published to, while inside a subscriber, the next subscriber will not be called. Example: ```javascript const dc = require('diagnostics_channel') const...
In Node.js, the following snippet succeeds, whereas, in the browser, it throws a `DataCloneError`: ```js structuredClone(new Response()); ``` This is causing the following WPT to fail: ```js structuredCloneBatteryOfTests.push({ description: 'Serializing...
Enforces --- IMO logical assignment operators are more concise and readable than if/then and || statements. This way, we can do more in less code, while keeping the files readable.
V8 backport of https://github.com/v8/v8/commit/2944ee9846e Applicable to v20.x Fixes [CVE-2024-4947](https://nvd.nist.gov/vuln/detail/CVE-2024-4947) which has been tagged by CISA as KEV.
Updated the win32 `toNamespacedPath` function to support device namespace paths as per #54180 and #54161. `url.pathToFileURL` was not modified since device namespace paths are not valid file URIs.
needed feature : napi_create_external_sharedarraybuffer napi_get_sharedarraybuffer_info napi_is_sharedarraybuffer Since V8 api supports external sharedarraybuffer creation, it would be nice if n-api implements this.
This PR moves the coverage source map tests to their own file / fixture folders. ## **Why?** Currently, source map support in the test runner has a few bugs ([such...
### Version v22.6.0 ### Platform ```text Microsoft Windows NT 10.0.22631.0 x64 Linux ****** 4.4.0-22621-Microsoft #3672-Microsoft Fri Jan 01 08:00:00 PST 2016 x86_64 x86_64 x86_64 GNU/Linux ``` ### Subsystem https://nodejs.org/api/globals.html#class-abortsignal ###...