Skip to content

Commit 95b1989

Browse files
authored
fs: remove workaround for esm package
PR-URL: nodejs#50907 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
1 parent d42949e commit 95b1989

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/internal/fs/utils.js

-4
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,6 @@ function Stats(dev, mode, nlink, uid, gid, rdev, blksize,
497497
ObjectSetPrototypeOf(Stats.prototype, StatsBase.prototype);
498498
ObjectSetPrototypeOf(Stats, StatsBase);
499499

500-
// HACK: Workaround for https://github.com/standard-things/esm/issues/821.
501-
// TODO(ronag): Remove this as soon as `esm` publishes a fixed version.
502-
Stats.prototype.isFile = StatsBase.prototype.isFile;
503-
504500
Stats.prototype._checkModeProperty = function(property) {
505501
if (isWindows && (property === S_IFIFO || property === S_IFBLK ||
506502
property === S_IFSOCK)) {

0 commit comments

Comments
 (0)