Skip to content

Instantly share code, notes, and snippets.

@dherman
Created January 16, 2012 23:13
Show Gist options
  • Save dherman/1623524 to your computer and use it in GitHub Desktop.
Save dherman/1623524 to your computer and use it in GitHub Desktop.
overriding return
function test() {
try {
try {
return 12
} finally {
throw "oh no you don't"
}
} catch (e) { }
console.log("ha!");
}
test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment