You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -526,9 +526,9 @@ async function readFileHandle(filehandle, options) {
526
526
527
527
if(size>kIoMaxLength){
528
528
process.emitWarning(
529
-
`Detected \`fs.readFile()\` to read a huge file in memory (${size} bytes). Please consider using \`fs.createReadStream()\` instead to minimize memory overhead and increase the performance.`,
530
-
'LargeFileWarning',
531
-
ERR_FS_FILE_TOO_LARGE
529
+
`Detected \`fs.readFile()\` to read a huge file in memory (${size} bytes). Please consider using \`fs.createReadStream()\` instead to minimize memory overhead and increase the performance.`,
0 commit comments