Skip to content

Instantly share code, notes, and snippets.

@scottwillson
Created August 8, 2016 18:32
Show Gist options
  • Select an option

  • Save scottwillson/06f17fc9cec902f52d085c02b83903a9 to your computer and use it in GitHub Desktop.

Select an option

Save scottwillson/06f17fc9cec902f52d085c02b83903a9 to your computer and use it in GitHub Desktop.
Promise.resolve().then(v => {
console.log('everything is fine');
throw new Error();
}).then(e => {
console.log('after error');
});
Promise.resolve().then(v => {
console.log('everything is fine 2');
throw new Error();
}).then(e => {
console.log('after error 2');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment