mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 855112 - OS.File.read fails with a "reference to undefined property options.bytes" JS Error, r=Yoric.
This commit is contained in:
parent
015cb3685e
commit
9126df76fb
@ -54,7 +54,7 @@ AbstractFile.prototype = {
|
||||
bytes = this.stat().size;
|
||||
}
|
||||
let buffer = new Uint8Array(bytes);
|
||||
let size = this.readTo(buffer, bytes);
|
||||
let size = this.readTo(buffer, {bytes: bytes});
|
||||
if (size == bytes) {
|
||||
return buffer;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user