Skip to content

Commit 9e68c00

Browse files
Trottdanielleadams
authored andcommitted
doc: format v8.md in preparation for stricter linting
PR-URL: #40647 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent e29bd46 commit 9e68c00

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/api/v8.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ stopHookSet();
625625
```
626626

627627
### `promiseHooks.onInit(init)`
628+
628629
<!-- YAML
629630
added: REPLACEME
630631
-->
@@ -648,6 +649,7 @@ const stop = promiseHooks.onInit((promise, parent) => {});
648649
```
649650

650651
### `promiseHooks.onSettled(settled)`
652+
651653
<!-- YAML
652654
added: REPLACEME
653655
-->
@@ -672,6 +674,7 @@ const stop = promiseHooks.onSettled((promise) => {});
672674
```
673675

674676
### `promiseHooks.onBefore(before)`
677+
675678
<!-- YAML
676679
added: REPLACEME
677680
-->
@@ -696,6 +699,7 @@ const stop = promiseHooks.onBefore((promise) => {});
696699
```
697700

698701
### `promiseHooks.onAfter(after)`
702+
699703
<!-- YAML
700704
added: REPLACEME
701705
-->
@@ -720,6 +724,7 @@ const stop = promiseHooks.onAfter((promise) => {});
720724
```
721725

722726
### `promiseHooks.createHook(callbacks)`
727+
723728
<!-- YAML
724729
added: REPLACEME
725730
-->
@@ -776,7 +781,7 @@ not necessarily ever even be garbage collected.
776781

777782
Because promises are asynchronous resources whose lifecycle is tracked
778783
via the promise hooks mechanism, the `init()`, `before()`, `after()`, and
779-
`settled()` callbacks *must not* be async functions as they create more
784+
`settled()` callbacks _must not_ be async functions as they create more
780785
promises which would produce an infinite loop.
781786

782787
While this API is used to feed promise events into [`async_hooks`][], the

0 commit comments

Comments
 (0)