Error detected while working with XWALK-737.
[Verification] TCT pass rate did not change.
Change-Id: Icd0235faf42666cecb747558de7bc2d0334de189
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
if (native_.isFailure(result.reply)) {
throw new WebAPIException(WebAPIException.INVALID_VALUES_ERR, 'Could not read');
}
- var bytes = [];
- for (var i = 0; i < result.output.length; ++i) {
- bytes.push(result.output.charCodeAt(i));
- }
+
this.position = this.position + result.reply.data_size;
- return bytes;
+ return result.output;
};
FileStream.prototype.readBase64 = function() {
});
var response = this.extension.sendSyncData(request, chunk);
response.reply = JSON.parse(response.reply);
- response.output = this.extension.receiveChunkData(response.chunk_id, "string");
+ response.output = this.extension.receiveChunkData(response.chunk_id, type);
return response;
};