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

Commit

Permalink
fix: Add missing functions from restored fs.Stats (#1923)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored May 6, 2023
1 parent 76010f6 commit e51efbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prelude/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,8 @@ function payloadFileSync(pointer) {
delete s.isSocketValue;
delete s.isSymbolicLinkValue;

s.isBlockDevice = noop;
s.isCharacterDevice = noop;
s.isFile = function isFile() {
return isFileValue;
};
Expand All @@ -1431,9 +1433,7 @@ function payloadFileSync(pointer) {
s.isSymbolicLink = function isSymbolicLink() {
return isSymbolicLinkValue;
};
s.isFIFO = function isFIFO() {
return false;
};
s.isFIFO = noop;

return s;
}
Expand Down

0 comments on commit e51efbe

Please sign in to comment.