Created
November 10, 2020 04:38
-
-
Save remarkablemark/c1c471f1bc6fb6774f11772b3d78f1cc to your computer and use it in GitHub Desktop.
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
(async () => { | |
try { | |
await Promise.reject('reason'); | |
} catch (error) { | |
console.log(error); // 'reason' | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment