why error print after console.log in microtask

28 Views Asked by At

enter image description here why number 2 print before throw i think throw is a macrotask!!!

the intersting things i find is error tip in chrome devtool breakpoint! enter image description here why?? in my work, macrotask is first execute, then, microtask run before next macrotask, throw is in sync! so did I get it wrong?

0

There are 0 best solutions below