Skip to content

Instantly share code, notes, and snippets.

@SimonRichardson
Created February 20, 2013 15:55
Show Gist options
  • Save SimonRichardson/4996575 to your computer and use it in GitHub Desktop.
Save SimonRichardson/4996575 to your computer and use it in GitHub Desktop.
This annoys the crap out of me when I'm Pausing on all exceptions in chrome as I have to press Play (F8) to bypass it every god damn time.
try {
// This should fail with an exception
// Gecko does not error, returns false instead
matches.call( document.documentElement, "[test!='']:sizzle" );
} catch( pseudoError ) {
pseudoWorks = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment