(callback)
| 4716 | } |
| 4717 | |
| 4718 | function idbError(callback) { |
| 4719 | return function (evt) { |
| 4720 | var message = 'unknown_error'; |
| 4721 | if (evt.target && evt.target.error) { |
| 4722 | message = evt.target.error.name || evt.target.error.message; |
| 4723 | } |
| 4724 | callback(createError(IDB_ERROR, message, evt.type)); |
| 4725 | }; |
| 4726 | } |
| 4727 | |
| 4728 | // Unfortunately, the metadata has to be stringified |
| 4729 | // when it is put into the database, because otherwise |
no test coverage detected
searching dependent graphs…