Update all bundled node sources to latest node v18 versions; use process.binding('fs')
for performance
#1754
Milestone
process.binding('fs')
for performance
#1754
Take a pass over all the bundled nodejs sources. Pull down a recent v18 revision and see about updating them all to that version.
Our test coverage is pretty good so we should catch any mistakes. And I've beefed up the diffing conveniences to make it easier to merge our changes / node's changes.
For more performant filesystem access, consider:
process.binding('fs')
for more performant stat and package.json readingfs.statSync('', {throwIfNoEntry: false})
to avoid creating garbageShould sync our error construction logic with node's
https://github.com/nodejs/node/blob/06dd8c31fd7e736f1d0e57d8ae4a41227661bbc3/lib/internal/errors.js#L347-L381
The text was updated successfully, but these errors were encountered: