Commit 5d72e7e1 authored by Romain Courteaud's avatar Romain Courteaud

Release 3.40.0

parent 750c352f
...@@ -26,7 +26,7 @@ TESTDIR = test ...@@ -26,7 +26,7 @@ TESTDIR = test
EXAMPLEDIR = examples EXAMPLEDIR = examples
EXTERNALDIR = external EXTERNALDIR = external
VERSION = 3.39.0 VERSION = 3.40.0
JIOVERSION = ${DISTDIR}/jio-v${VERSION}.js JIOVERSION = ${DISTDIR}/jio-v${VERSION}.js
JIOLATEST = ${DISTDIR}/jio-latest.js JIOLATEST = ${DISTDIR}/jio-latest.js
JIONODEVERSION = ${DISTDIR}/jio-v${VERSION}-node.js JIONODEVERSION = ${DISTDIR}/jio-v${VERSION}-node.js
......
...@@ -15285,8 +15285,7 @@ return new Parser; ...@@ -15285,8 +15285,7 @@ return new Parser;
var index = parseInt( var index = parseInt(
cursor.primaryKey.slice(key_path.length + 1), cursor.primaryKey.slice(key_path.length + 1),
10 10
), );
i;
if ((start !== 0) && (index < start_index)) { if ((start !== 0) && (index < start_index)) {
// No need to fetch blobs at the start // No need to fetch blobs at the start
...@@ -15297,12 +15296,6 @@ return new Parser; ...@@ -15297,12 +15296,6 @@ return new Parser;
return; return;
} }
i = index - start_index;
// Extend array size
while (i > promise_list.length) {
promise_list.push(null);
i -= 1;
}
// Sort the blob by their index // Sort the blob by their index
promise_list.splice( promise_list.splice(
index - start_index, index - start_index,
...@@ -15336,7 +15329,7 @@ return new Parser; ...@@ -15336,7 +15329,7 @@ return new Parser;
{type: "application/octet-stream"}); {type: "application/octet-stream"});
index = Math.floor(start / UNITE) * UNITE; index = Math.floor(start / UNITE) * UNITE;
if (end === undefined) { if (end === undefined) {
end = blob.length; end = blob.size;
} else { } else {
end = end - index; end = end - index;
} }
...@@ -15359,13 +15352,8 @@ return new Parser; ...@@ -15359,13 +15352,8 @@ return new Parser;
var index = parseInt( var index = parseInt(
cursor.primaryKey.slice(key_path.length + 1), cursor.primaryKey.slice(key_path.length + 1),
10 10
), );
i = index;
// Extend array size
while (i > array_buffer_list.length) {
array_buffer_list.push(null);
i -= 1;
}
// Sort the blob by their index // Sort the blob by their index
array_buffer_list.splice( array_buffer_list.splice(
index, index,
...@@ -15407,7 +15395,7 @@ return new Parser; ...@@ -15407,7 +15395,7 @@ return new Parser;
blob = new Blob(array_buffer_list, blob = new Blob(array_buffer_list,
{type: attachment.info.content_type}); {type: attachment.info.content_type});
if (blob.length !== attachment.info.total_length) { if (blob.size !== attachment.info.length) {
throw new jIO.util.jIOError( throw new jIO.util.jIOError(
"IndexedDB: attachment '" + "IndexedDB: attachment '" +
buildKeyPath([id, name]) + buildKeyPath([id, name]) +
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment