dumbmatter / fakeIndexedDB

A pure JS in-memory implementation of the IndexedDB API
Apache License 2.0
562 stars 69 forks source link

Try using built-in Node.js Blob #96

Open dumbmatter opened 8 months ago

dumbmatter commented 8 months ago

Node.js now has a built-in Blob, so maybe I can use that rather than https://github.com/dumbmatter/fakeIndexedDB/blob/a1c148880d227fa218473efeac11d4e36dfa8b73/src/test/web-platform-tests/wpt-env.js#L7-L11 and maybe also enable some skipped tests that use Blobs.

dumbmatter commented 3 months ago

Currently the keypath-special-identifiers test fails when trying to set a value for an autoincrementing key in the "size" property, apparently that's supposed to overwrite the size of the Blob? Not sure how I should handle that.