Skip to content

Commit f35fe81

Browse files
Add comment about need for async serialization
1 parent 030d980 commit f35fe81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.bs

+4
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ given |value|, |serialized| and |forStorage|, are:
274274
1. Let |bytes| be the result of [=read all bytes|reading all bytes=] from |value|.
275275
1. Set |serialized|.\[[BlobData]] to the result of [=creating blob data from bytes=] given |bytes|.
276276

277+
Issue: In at least Chrome's IndexedDB implementation, this copying of the data of blobs
278+
is only done when a transaction is committed (and failure to read the blob will cause
279+
the commit to fail).
280+
277281
1. Otherwise:
278282
1. Set |serialized|.\[[BlobData]] to |value|.[=[[data]]=].
279283

0 commit comments

Comments
 (0)