Skip to content

Instantly share code, notes, and snippets.

@mafintosh
Created March 4, 2020 11:12
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 mafintosh/3642f0a1dcc7bef123766b6b0cb2400d to your computer and use it in GitHub Desktop.
Save mafintosh/3642f0a1dcc7bef123766b6b0cb2400d to your computer and use it in GitHub Desktop.
const p = Promise.reject()
p.catch(() => {})
function destroy () {
return p
}
const another = Promise.reject()
another.catch(destroy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment