Skip to content

Instantly share code, notes, and snippets.

@Raynos

Raynos/code.js Secret

Created May 12, 2012 07:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Raynos/545efc2fa8fe3c3d8e14 to your computer and use it in GitHub Desktop.
try {
// indexedDB.deleteDatabase is undefined
var req = indexedDB.deleteDatabase(name)
} catch (err) {
log("error in deleteDatabase", err.message)
}
error: c[d] is undefined
at [anonymous]() in /test/factory.js : line: 37, column: 9
at deleteDatabase() in /lib/factory.js : line: 35, column: 19
at [anonymous]() in /lib/factory.js : line: 34, column: 30
at deleteDatabase() in /test/factory.js : line: 37, column: 9
at [anonymous]() in /test/factory.js : line: 34, column: 47
at test() in /test/factory.js : line: 34, column: 5
at [anonymous]() in /test/factory.js : line: 1, column: 27
> indexedStore.deleteDatabase("testling", function (err, result) {
> t.equal(err, null, "we have an error")
> t.equal(result, null, "result is not null")
> t.end()
> })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment