Skip to content

Commit 4b97dc7

Browse files
authored
Add a note on the post "Faster async functions and promises". (v8#737)
* Add a note on the post - note for behavior changed since 5 years ago
1 parent 25dcd97 commit 4b97dc7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/blog/fast-async.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ We’ve also been working on a new garbage collector, called Orinoco, which move
156156

157157
And last but not least, there was a handy bug in Node.js 8 that caused `await` to skip microticks in some cases, resulting in better performance. The bug started out as an unintended spec violation, but it later gave us the idea for an optimization. Let’s start by explaining the buggy behavior:
158158

159+
:::note
160+
**Note:** The following behavior was correct according to the JavaScript spec at the time of writing. Since then, our spec proposal was accepted, and the following "buggy" behavior is now correct.
161+
:::
162+
159163
```js
160164
const p = Promise.resolve();
161165

0 commit comments

Comments
 (0)