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 93bb5ffbd7
commit 4d1f3e3bae

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)