Bug 855112 - OS.File.read fails with a "reference to undefined property options.bytes" JS Error, r=Yoric.

This commit is contained in:
Florian Quèze 2013-03-28 14:46:45 +01:00
parent 015cb3685e
commit 9126df76fb

View File

@ -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 {