Skip to content

Commit c1ee506

Browse files
anonrigtargos
authored andcommitted
fs: remove workaround for esm package
PR-URL: #50907 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
1 parent ec74b93 commit c1ee506

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)