Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Add support for fs.realpath.native (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Infern1 authored May 10, 2021
1 parent 0b55f9a commit b8ef570
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prelude/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ function payloadFileSync(pointer) {
ancestor.readdirSync = fs.readdirSync;
ancestor.readdir = fs.readdir;
ancestor.realpathSync = fs.realpathSync;
ancestor.realpathSync.native = fs.realpathSync;
ancestor.realpath = fs.realpath;
ancestor.realpath.native = fs.realpath;
ancestor.statSync = fs.statSync;
ancestor.stat = fs.stat;
ancestor.lstatSync = fs.lstatSync;
Expand Down Expand Up @@ -1060,6 +1062,9 @@ function payloadFileSync(pointer) {
callback(null, realpathFromSnapshot(f));
};

fs.realpathSync.native = fs.realpathSync;
fs.realpath.native = fs.realpath;

// ///////////////////////////////////////////////////////////////
// stat //////////////////////////////////////////////////////////
// ///////////////////////////////////////////////////////////////
Expand Down

0 comments on commit b8ef570

Please sign in to comment.