diff --git a/lib/fs.js b/lib/fs.js index 4be15d3eebadcb..1f752c071bdd81 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -460,7 +460,7 @@ function readFileAfterStat(err) { // our internal use. var size; if ((statValues[1/*mode*/] & S_IFMT) === S_IFREG) - size = context.size = statValues[8/*size*/]; + size = context.size = statValues[8]; else size = context.size = 0; @@ -576,7 +576,7 @@ fs.readFileSync = function(path, options) { // our internal use. var size; if ((statValues[1/*mode*/] & S_IFMT) === S_IFREG) - size = statValues[8/*size*/]; + size = statValues[8]; else size = 0; var pos = 0; @@ -1700,8 +1700,8 @@ fs.realpathSync = function realpathSync(p, options) { var linkTarget = null; var id; if (!isWindows) { - var dev = statValues[0/*dev*/].toString(32); - var ino = statValues[7/*ino*/].toString(32); + var dev = statValues[0].toString(32); + var ino = statValues[7].toString(32); id = `${dev}:${ino}`; if (seenLinks[id]) { linkTarget = seenLinks[id]; @@ -1837,8 +1837,8 @@ fs.realpath = function realpath(p, options, callback) { // dev/ino always return 0 on windows, so skip the check. let id; if (!isWindows) { - var dev = statValues[0/*ino*/].toString(32); - var ino = statValues[7/*ino*/].toString(32); + var dev = statValues[0].toString(32); + var ino = statValues[7].toString(32); id = `${dev}:${ino}`; if (seenLinks[id]) { return gotTarget(null, seenLinks[id], base);