Created
September 30, 2016 15:24
-
-
Save StevenLangbroek/647a5c6e6a0daffab3fea04346bf38d9 to your computer and use it in GitHub Desktop.
Flipped promise order.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _then = Promise.then; | |
Promise.then = (error, success) => _then(success, error); |
This is a great way to ruin someone's day haha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Promise.prototype.then