Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function b () {
- console.log('done with func b');
- }
- async function a() {
- try {
- throw 'this is the return message'
- } catch (e) {
- return e;
- } finally {
- await b();
- }
- }
- a().then(msg => {
- console.log('done with func a');
- console.log("return Msg:",msg)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement