Skip to content

Commit 984d6ce

Browse files
remove extraneous details unnecessary for minimal repro
1 parent 3366b4a commit 984d6ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/api/module.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ resolution and loading behavior. See [Customization hooks][].
114114
> **Warning** When setting up a `MessageChannel` to communicate with hooks,
115115
> beware that this can lead to a deadlock. For example, you have 2 modules,
116116
> A and B. "A" is registered first and sets up a message channel, which it uses
117-
> in its `resolve` hook. "B" uses `register` to register its hooks. Resolving
118-
> "B"'s own specifier will go through "A"'s `resolve` hook, which will try to
117+
> in its `resolve` hook. After "A" is registered, "B" is registered. Resolving
118+
> "B"'s specifier will go through "A"'s `resolve` hook, which will try to
119119
> communicate with a locked thread that is busy trying to register "B"'s hooks.
120-
> Since registering B depends on resolving B's specifier, and resolving B's
121-
> specifier is blocked by A's communication request, and that is itself blocked
122-
> by the pending registration that started the chain, the application becomes
123-
> deadlocked.
120+
> Since registering "B" depends on resolving "B"'s specifier, and resolving
121+
> "B"'s specifier is blocked by "A"'s communication request that is itself
122+
> blocked by the pending registration that started the chain, the application
123+
> becomes deadlocked.
124124
125125
### `module.syncBuiltinESMExports()`
126126

0 commit comments

Comments
 (0)