node/lib/internal
HEESEUNG a81e786463
fs: refactor handleTimestampsAndMode to remove redundant call
Refactored the `handleTimestampsAndMode` function to eliminate the
redundant `setDestTimestampsAndMode` call. This simplifies the function
by ensuring that `setDestTimestampsAndMode` is only called once after
any necessary modifications to file writability.

PR-URL: https://github.com/nodejs/node/pull/54369
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
2024-08-24 16:50:57 +00:00
..
assert lib: optimize copyError with ObjectAssign in primordials 2024-07-25 12:12:35 +00:00
async_local_storage lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
bootstrap process: port on-exit-leak-free to core 2024-07-11 17:57:20 +00:00
child_process tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
cluster lib: improve cluster/primary code 2024-07-21 22:23:17 +00:00
console console: use validateOneOf for colorMode validation 2024-08-10 01:49:40 +00:00
crypto crypto: remove ERR_CRYPTO_SCRYPT_INVALID_PARAMETER 2024-07-10 16:38:00 +00:00
debugger
dns lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
events lib: fix naming convention of Symbol 2024-06-10 14:56:14 +00:00
fs fs: refactor handleTimestampsAndMode to remove redundant call 2024-08-24 16:50:57 +00:00
http2 http2: remove prototype primordials 2024-07-05 06:20:12 +00:00
legacy tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
main test_runner: support running tests in process 2024-08-21 13:39:19 +00:00
modules module: fix discrepancy between .ts and .js 2024-08-22 08:48:33 +00:00
per_context tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
perf lib: add toJSON to PerformanceMeasure 2024-06-29 04:48:23 +00:00
process lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
readline http, readline: replace sort with toSorted 2024-07-10 16:46:24 +00:00
repl repl: fix await object patterns without values 2024-06-07 01:24:32 +00:00
source_map lib: decorate async stack trace in source maps 2024-07-18 14:45:43 +00:00
streams lib: replace spread operator with primordials function 2024-08-12 07:05:39 +00:00
test v8: implement v8.queryObjects() for memory leak regression testing 2024-03-02 22:11:30 +00:00
test_runner test_runner: add support for coverage thresholds 2024-08-23 17:02:11 +00:00
tls tls: fix negative sessionTimeout handling 2024-05-18 00:26:11 +00:00
util lib: support dynamic trace events on debugWithTimer 2024-07-28 17:20:38 +00:00
v8 lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
vm vm: fix ASCII-betical order 2024-04-25 19:14:16 +00:00
watch_mode test_runner: handle file rename and deletion under watch mode 2024-06-02 08:11:30 +00:00
webstreams lib: fix unhandled errors in webstream adapters 2024-08-06 18:34:35 +00:00
worker worker: add postMessageToThread 2024-07-09 07:16:04 +00:00
abort_controller.js lib: use predefined variable instead of bit operation 2024-04-20 16:24:25 +00:00
assert.js
async_context_frame.js lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
async_hooks.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
blob.js buffer: add JSDoc to blob bytes method 2024-08-05 00:29:07 +00:00
blocklist.js
buffer.js buffer: use fast API for writing one-byte strings 2024-08-15 01:01:05 +00:00
child_process.js child_process: remove unused internal event 2024-08-01 03:07:10 +00:00
cli_table.js
constants.js
dgram.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
encoding.js
error_serdes.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
errors.js lib,src: drop --experimental-network-imports 2024-07-28 16:33:05 +00:00
event_target.js lib: fix naming convention of Symbol 2024-06-10 14:56:14 +00:00
file.js
fixed_queue.js
freelist.js
freeze_intrinsics.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
heap_utils.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
histogram.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
http.js src,lib: expose getCategoryEnabledBuffer to use on node.http 2024-07-16 18:40:22 +00:00
idna.js
inspector_async_hook.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
inspector_network_tracking.js inspector: support Network.loadingFailed event 2024-08-11 11:42:01 +00:00
js_stream_socket.js http2: fix h2-over-h2 connection proxying 2024-04-08 09:53:18 +00:00
linkedlist.js
mime.js
navigator.js lib: make navigator not runtime-lookup process.version/arch/platform 2024-07-15 23:09:54 +00:00
net.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00
options.js src: reduce unnecessary serialization of CLI options in C++ 2024-05-02 22:57:03 +00:00
priority_queue.js
promise_hooks.js tools: add lint rule to keep primordials in ASCII order 2024-04-21 16:53:08 +00:00
querystring.js
README.md lib, doc: rename readme.md to README.md 2024-04-14 10:30:31 +00:00
repl.js
socket_list.js
socketaddress.js
stream_base_commons.js http2: fix h2-over-h2 connection proxying 2024-04-08 09:53:18 +00:00
timers.js lib: improve async_context_frame structure 2024-08-09 19:44:42 +00:00
trace_events_async_hooks.js
tty.js
url.js url: modify pathToFileURL to handle extended UNC path 2024-08-12 14:48:39 +00:00
util.js lib: refactor platform utility methods 2024-07-15 18:58:11 +00:00
v8_prof_polyfill.js
v8_prof_processor.js
validators.js lib: fix misleading argument of validateUint32 2024-06-05 22:59:05 +00:00
vm.js
wasm_web_api.js
watchdog.js
webidl.js
webstorage.js src: move ToNamespacedPath call of webstorage 2024-07-21 20:49:10 +00:00
worker.js worker: add postMessageToThread 2024-07-09 07:16:04 +00:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.