mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fixes ts error on files.ts
This commit is contained in:
@@ -1538,13 +1538,13 @@ export function readBufferWithLengthAndOffset(
|
||||
if (length > 0) {
|
||||
const fd = open(filename, "r");
|
||||
try {
|
||||
var count = read(fd, data, 0, length, offset);
|
||||
const count = read(fd, data, { position: 0, length, offset });
|
||||
if (count !== length) {
|
||||
throw new Error("couldn't read entire resource");
|
||||
}
|
||||
} finally {
|
||||
close(fd);
|
||||
}
|
||||
if (count !== length) {
|
||||
throw new Error("couldn't read entire resource");
|
||||
}
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user