Closed han-so1omon closed 4 years ago
IndexedDB stores data via structured cloning, and doesn't walk to prototype chain and cannot store functions.
This isn't an issue with this library, it's how indexedDB works.
It'll never be able to store things like functions. Imagine if the function had a closure to a document, or a webgl context or a worker etc etc, how would that be stored?
Issue
I am inputting some data to an IDB table. However, upon getting it, the data is not the same. Specifically it does not contain the functions from a prototype object.
Code
Output