Bug 784373 - Fixed typo: SEEK_START => SEEK_SET. r=froydnj

This commit is contained in:
David Rajchenbach-Teller 2012-08-28 13:23:47 -04:00
parent efece18efb
commit fbfbf26fa2

View File

@ -142,7 +142,7 @@
*/
File.prototype.setPosition = function setPosition(pos, whence) {
if (whence === undefined) {
whence = Const.SEEK_START;
whence = Const.SEEK_SET;
}
return throw_on_negative("setPosition",
UnixFile.lseek(this.fd, pos, whence)