You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With slice [10, 20) the blob should be of length 10 and blob.size returns 10.
But the actual data read is 30 bytes.
My guess what that perhaps there's a length = end + start instead of length = end - start somewhere,
and I think that is what seems to be happening here:
When performing a
slice()
on a blob created withfs.openAsBlob
, the offset is correct but the length is not.Fairly easy to repro with any file (on 19.8.1)
Running this with any files results in:
With slice [10, 20) the blob should be of length 10 and blob.size returns 10.
But the actual data read is 30 bytes.
My guess what that perhaps there's a
length = end + start
instead oflength = end - start
somewhere,and I think that is what seems to be happening here:
node/src/dataqueue/queue.cc
Line 820 in ecb023b
Seems like this should just be:
adding the original
start_
not the newstart
Edit: took me a couple of tries to get it right - the end instead of length somehow makes it more tricky!
The text was updated successfully, but these errors were encountered: