args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle is not opened'));
}, 0);
+ return;
}
var data = {id: this.id, offset: args.offset, blocking: false};
if (undefined === args.whence) {
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle is not opened'));
}, 0);
+ return;
}
if ((this.mode === 'w') || (this.mode === 'a')) {
setTimeout(function() {
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle state is write-only'));
}, 0);
+ return;
}
var data = {id: this.id, encoding: args.inputEncoding, blocking: false};
if (!type_.isNullOrUndefined(args.count)) {
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle is not opened'));
}, 0);
+ return;
}
if ('r' === this.mode) {
setTimeout(function() {
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle state is read-only'));
}, 0);
+ return;
}
var data =
{id: this.id, string: args.string, encoding: args.outputEncoding, blocking: false};
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle is not opened'));
}, 0);
+ return;
}
var data = {id: this.id, blocking: false};
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle is not opened'));
}, 0);
+ return;
} else if (this.mode === 'r') {
setTimeout(function() {
native_.callIfPossible(
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle state is read-only'));
}, 0);
+ return;
}
var encodedData = ArrayToString(blobToUint8Array(args.blob));
setTimeout(function() {
native_.callIfPossible(args.errorCallback, native_.getErrorObject(result));
}, 0);
+ return;
}
};
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle is not opened'));
}, 0);
+ return;
}
if ((this.mode === 'w') || (this.mode === 'a')) {
setTimeout(function() {
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle state is write-only'));
}, 0);
+ return;
}
var data = {id: this.id, blocking: false};
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle is not opened'));
}, 0);
+ return;
} else if (this.mode === 'r') {
setTimeout(function() {
native_.callIfPossible(
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle state is read-only'));
}, 0);
+ return;
}
var encodedData = ArrayToString(args.data);
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle is not opened'));
}, 0);
+ return;
}
if (this.mode === 'r') {
setTimeout(function() {
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle state is read-only'));
}, 0);
+ return;
}
var data = {id: this.id, blocking: false};
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle is not opened'));
}, 0);
+ return;
}
if (this.mode === 'r') {
setTimeout(function() {
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle state is read-only'));
}, 0);
+ return;
}
var data = {id: this.id, blocking: false};
args.errorCallback,
new WebAPIException(WebAPIException.IO_ERR, 'FileHandle is not opened'));
}, 0);
+ return;
}
var data = {id: this.id, blocking: false};