Skip to content

Commit ecccf48

Browse files
Trotttargos
authored andcommitted
doc: format v8.md in preparation for stricter linting
PR-URL: #40647 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent c2fabdb commit ecccf48

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/api/v8.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ stopHookSet();
627627
```
628628

629629
### `promiseHooks.onInit(init)`
630+
630631
<!-- YAML
631632
added: REPLACEME
632633
-->
@@ -650,6 +651,7 @@ const stop = promiseHooks.onInit((promise, parent) => {});
650651
```
651652

652653
### `promiseHooks.onSettled(settled)`
654+
653655
<!-- YAML
654656
added: REPLACEME
655657
-->
@@ -674,6 +676,7 @@ const stop = promiseHooks.onSettled((promise) => {});
674676
```
675677

676678
### `promiseHooks.onBefore(before)`
679+
677680
<!-- YAML
678681
added: REPLACEME
679682
-->
@@ -698,6 +701,7 @@ const stop = promiseHooks.onBefore((promise) => {});
698701
```
699702

700703
### `promiseHooks.onAfter(after)`
704+
701705
<!-- YAML
702706
added: REPLACEME
703707
-->
@@ -722,6 +726,7 @@ const stop = promiseHooks.onAfter((promise) => {});
722726
```
723727

724728
### `promiseHooks.createHook(callbacks)`
729+
725730
<!-- YAML
726731
added: REPLACEME
727732
-->
@@ -778,7 +783,7 @@ not necessarily ever even be garbage collected.
778783

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

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

0 commit comments

Comments
 (0)