node
node copied to clipboard
Node.js JavaScript runtime ✨🐢🚀✨
I propose to ~~documentation deprecate~~ mark as legacy `process.nextTick`, for the various inconsistencies and unpredictable behaviour. Some discussion happened [here](https://github.com/nodejs/node/pull/51114) and [here](https://github.com/nodejs/node/pull/51267). ~~This won't probably transition to eol deprecation, but...
### Version 18.15, 20.10 ### Platform Microsoft Windows NT 11.0.22621.0 x64 ### Subsystem NPM / NPM.cmd ### What steps will reproduce the bug? **Yesterday**: `npm install` works and packages installed....
There's an edge case with [the current Web IDL bindings for async iterators](https://webidl.spec.whatwg.org/commit-snapshots/47c5c920811b1bfdd56304a9d8313766d482897b/#ref-for-asynchronous-iterator-return) where manually calling `return(); next()` could result in the `next()` promise resolving before the `return()` promise. The...
Scripts/Modules running in the context created with `vm.createContext` can not access various Node.js built-in apis/modules like `URL`, `node:assert`, `node:http`, etc. This makes it cumbersome to create a disposable context for...
### What is the problem this feature will solve? It's a nice way to accept both `URL` and path string in API, but we need covert it to either string...
The final gyp file output is correct, this commit omits a unnecessary option validation. The `configure_v8` function will switch the option based on output. Even before this patch if `--v8-disable-object-print`...
Modifying `error.message` does not update `error.stack` if `stream.destroy(error)` has been called
### Version v21.1.0 ### Platform Linux ether-laptop 6.5.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 9 17:03:36 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux ### Subsystem _No response_ ### What steps will reproduce...
### What is the problem this feature will solve? I like the general format of the `deepStrictEqual` diff comparisons, but it would be nice to get this functionality "natively" to...
### Version 18.x+ ### Platform all ### Subsystem build ### What steps will reproduce the bug? As the title says, `--v8-disable-object-print` does not work because [`--v8-enable-object-print` defaults to `True`](https://github.com/nodejs/node/blob/a8de25ed1523594dd6bf0ee08a24f146d38cb4e8/configure.py#L797C1-L801) and...
Added the function for compliance with frameworks such as Jest Fixes: #50780