Skip to content

Instantly share code, notes, and snippets.

@Raynos Raynos/x.js Secret
Created May 11, 2012

Embed
What would you like to do?
try {
var req = indexedDB.open(name, version)
} catch (err) {
log(err instanceof Error) // false
throw new Error(err.message) // rethrowing the error as an instanceof Error makes the test continue
// letting this error bubble up into testling as a DOM error thing makes testling halt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.