Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f130a33

Browse filesBrowse files
jeremymengmarco-ippolito
authored andcommitted
Revert "fs: remove workaround for esm package"
This reverts commit 95b1989. It appears that the workaround is still needed: issue #51081 Backport-PR-URL: #51390 PR-URL: #50907 Fixes: #51081 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent 71a809b commit f130a33
Copy full SHA for f130a33

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎lib/internal/fs/utils.js‎

Copy file name to clipboardExpand all lines: lib/internal/fs/utils.js
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,10 @@ function Stats(dev, mode, nlink, uid, gid, rdev, blksize,
500500
ObjectSetPrototypeOf(Stats.prototype, StatsBase.prototype);
501501
ObjectSetPrototypeOf(Stats, StatsBase);
502502

503+
// HACK: Workaround for https://github.com/standard-things/esm/issues/821.
504+
// TODO(ronag): Remove this as soon as `esm` publishes a fixed version.
505+
Stats.prototype.isFile = StatsBase.prototype.isFile;
506+
503507
Stats.prototype._checkModeProperty = function(property) {
504508
if (isWindows && (property === S_IFIFO || property === S_IFBLK ||
505509
property === S_IFSOCK)) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.