We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dce6dc commit 2036e4aCopy full SHA for 2036e4a
lib/internal/fs/promises.js
@@ -46,6 +46,7 @@ const {
46
},
47
} = require('internal/errors');
48
const { isArrayBufferView } = require('internal/util/types');
49
+
50
const {
51
constants: {
52
kIoMaxLength,
test/parallel/test-fs-readfile.js
@@ -64,14 +64,6 @@ for (const e of fileInfo) {
64
const file = path.join(tmpdir.path, 'temp-large-file.txt');
65
fs.writeFileSync(file, Buffer.alloc(1024));
66
fs.truncateSync(file, kLargeFileSize);
67
-
68
- fs.readFile(file, (err, data) => {
69
- if (err) {
70
- console.error('Error reading file:', err);
71
- } else {
72
- console.log('File read successfully:', data.length);
73
- }
74
- });
75
}
76
77
{
0 commit comments