Commit 65e62e56 authored by Joyee Cheung's avatar Joyee Cheung Committed by James M Snell
Browse files

fs: return stats to JS in sync methods

- Reduce reference to the global `statValues` by returning
  the changed stats array from the synchronous methods. Having
  a local returned value also makes the future integration
  of BigInt easier.
- Also returns the filled array from node::FillGlobalStatsArray
  and node::FillStatsArray in the C++ side.

PR-URL: https://github.com/nodejs/node/pull/20167


Reviewed-By: default avatarRuben Bridgewater <ruben@bridgewater.de>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarKhaidi Chu <i@2333.moe>
Reviewed-By: default avatarGus Caplan <me@gus.host>
parent b7d1e19e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment