Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ecccf48

Browse filesBrowse files
Trotttargos
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 c2fabdb commit ecccf48
Copy full SHA for ecccf48

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/v8.md‎

Copy file name to clipboardExpand all lines: doc/api/v8.md
+6-1Lines changed: 6 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.