Skip to content

Instantly share code, notes, and snippets.

@CodeLenny
Created June 1, 2017 15:48
Show Gist options
  • Save CodeLenny/075e2b9f7863283c66417eb9cdb8f5c4 to your computer and use it in GitHub Desktop.
Save CodeLenny/075e2b9f7863283c66417eb9cdb8f5c4 to your computer and use it in GitHub Desktop.
Wat
let x = new Error("Test");
Promise
.resolve(x)
.then(() => console.log("Good"))
.catch() => console.log("Bad"));
// => "Bad"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment