Commit 23c2d33
authored
doc: clarify cjs/esm diff in
the section comparing `queueMicrotask()` and `process.nextTick()`
doesn't address the different scheduling behavior that the two
functions have in cjs and esm modules, the section's introductory mjs
example also provides an incorrect output, the changes here address
such by explaining the difference between the two module types and
updating the example accordingly
PR-URL: #56659
Fixes: #45048
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>queueMicrotask() vs process.nextTick()
1 parent d07c60b commit 23c2d33
1 file changed
+22
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3020 | 3020 | | |
3021 | 3021 | | |
3022 | 3022 | | |
3023 | | - | |
3024 | | - | |
3025 | | - | |
3026 | | - | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
3027 | 3028 | | |
3028 | 3029 | | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
3029 | 3035 | | |
3030 | 3036 | | |
3031 | 3037 | | |
3032 | | - | |
3033 | | - | |
3034 | | - | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
3035 | 3041 | | |
3036 | | - | |
3037 | | - | |
3038 | | - | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
3039 | 3045 | | |
3040 | 3046 | | |
3041 | 3047 | | |
3042 | 3048 | | |
3043 | 3049 | | |
3044 | | - | |
3045 | | - | |
3046 | | - | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
3047 | 3053 | | |
3048 | | - | |
3049 | | - | |
3050 | | - | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
3051 | 3057 | | |
3052 | 3058 | | |
3053 | 3059 | | |
| |||
0 commit comments