From 95b198911382b0aa0a0448e2a86214558665e02b Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Mon, 27 Nov 2023 14:29:46 -0500 Subject: [PATCH] fs: remove workaround for `esm` package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/50907 Reviewed-By: Robert Nagy Reviewed-By: Luigi Pinca Reviewed-By: Moshe Atlow Reviewed-By: Vinícius Lourenço Claro Cardoso --- lib/internal/fs/utils.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/internal/fs/utils.js b/lib/internal/fs/utils.js index 9f5ad9bf5f6c0e..6e2ae69555130d 100644 --- a/lib/internal/fs/utils.js +++ b/lib/internal/fs/utils.js @@ -497,10 +497,6 @@ function Stats(dev, mode, nlink, uid, gid, rdev, blksize, ObjectSetPrototypeOf(Stats.prototype, StatsBase.prototype); ObjectSetPrototypeOf(Stats, StatsBase); -// HACK: Workaround for https://github.com/standard-things/esm/issues/821. -// TODO(ronag): Remove this as soon as `esm` publishes a fixed version. -Stats.prototype.isFile = StatsBase.prototype.isFile; - Stats.prototype._checkModeProperty = function(property) { if (isWindows && (property === S_IFIFO || property === S_IFBLK || property === S_IFSOCK)) {