dumbmatter / fakeIndexedDB

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

Descriptive error message when DB version is 0 #105

Closed IkeHunter closed 3 weeks ago

IkeHunter commented 3 weeks ago

Function at src/FDBFactory.ts:273 already throws an error if the version parameter is 0, just added a message to that error to improve clarity (currently throws empty TypeError).

dumbmatter commented 3 weeks ago

Thanks, looks like browsers have similar error messages, so this definitely makes sense to add.