mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
fs: remove workaround for esm
package
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
d42949e79f
commit
95b1989113
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user