Skip to content

Instantly share code, notes, and snippets.

@Raynos

Raynos/x.js Secret

Created May 11, 2012 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/b1f5369fdc9707547e78 to your computer and use it in GitHub Desktop.
Save Raynos/b1f5369fdc9707547e78 to your computer and use it in GitHub Desktop.
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