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

Add support for fs.realpath.native #1173

Merged
merged 1 commit into from
May 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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