Skip to content

Commit 41d6db6

Browse files
authored
Ensure compatibility with Node.js 10 and 12
1 parent f74b368 commit 41d6db6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/filesystem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const readFile = (path) => new Promise((resolve, reject) => {
3737
const buffer = Buffer.alloc(MAX_LENGTH);
3838
fs.read(fd, buffer, 0, MAX_LENGTH, 0, (_, bytesRead) => {
3939
resolve(buffer.subarray(0, bytesRead));
40-
fs.close(fd);
40+
fs.close(fd, () => {});
4141
});
4242
}
4343
});

0 commit comments

Comments
 (0)