feat: add console.log in Promise microtasks (#481)

This commit is contained in:
Huáng Jùnliàng 2018-07-24 09:13:00 +08:00 committed by Rob Larsen
parent 3ce2b2be20
commit 7dcacb1374
1 changed files with 4 additions and 1 deletions

View File

@ -56,7 +56,10 @@ console.log('one');
setTimeout(function() {
console.log('two');
}, 0);
console.log('three');
Promise.resolve().then(function() {
console.log('three');
})
console.log('four');
```
*Question: What is the difference between these four promises?*