microtask队列1. onReject1
onFullfilled3执行
microtask队列1. onReject12. onFulfilled3
p' 状态变为fullfilledonFullfilled2 加入microtask
onReject1
onFullfilled4执行
p2' 状态:pending
fn执行
p = new Promise(fn)
onFullfilled2执行
p2 状态:fulfilled
p' 状态:pending
fn执行错误
resolve
reject
p 状态:rejected
p2 = new Promise(fn)