Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Add ๐(cat) prefix to functions
- ## Motivation
- Functions or methods, marked with ๐ do not throw exceptions. In case of error - ๐ will be thrown.
- ```js
- function ๐myFunction()
- ```
- ## High-level API
- ```js
- var ๐myFunction = () => { throw 'Bad bad exception' }
- try {
- myFunction();
- } catch (err) {
- console.log(err); // ๐
- }
- ```
Add Comment
Please, Sign In to add comment