-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support indexedDB implement #385
Comments
What would it be backed by? |
sqlite or levelDB ? |
One SQLite is added to the core indexedDB could potentially be shimmed. |
SQLite support landed: #395 |
Think we first need to impl structural clone that can clone complex object to/from arraybuffers or something first. If i remember correctly chrome used sqlite + cbor for storing stuff in? |
For structuredClone support please follow quickjs-ng/quickjs#16 Once we have it in QuickJS we can update here. |
I think it's this (or was, at least). I earned a $15k bug bounty last year for a bug in the deserializer that was exploitable across sandboxes. /tangent |
FYI, I added structuredClone here. It's pretty small, so I could port it to QuickJS, but in order to be correct we'd need DOMException, which I'm a bit more in doubt about, plus the version we'd ship doesn't work for other clonable things QuickJS doesn't have... Anyway, if someone wants to give it a try, all the ducks should be in a row now :-) |
can add indexedDB implement into txiki.js ?
The text was updated successfully, but these errors were encountered: