doc: fix module.isPreloading documentation

Fixes: https://github.com/nodejs/node/issues/36775

PR-URL: https://github.com/nodejs/node/pull/36944
Refs: https://github.com/nodejs/node/pull/36263
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Antoine du Hamel 2021-01-15 15:46:11 +01:00 committed by James M Snell
parent afd911c38c
commit 9d7fb229db
No known key found for this signature in database
GPG Key ID: 7341B15C070877AC
2 changed files with 8 additions and 8 deletions

View File

@ -76,14 +76,6 @@ const requireUtil = createRequireFromPath('../src/utils/');
requireUtil('./some-tool');
```
### `module.isPreloading`
<!-- YAML
added: v15.4.0
-->
* Type: {boolean} `true` if the module is running during the Node.js preload
phase.
### `module.syncBuiltinESMExports()`
<!-- YAML
added: v12.12.0

View File

@ -888,6 +888,14 @@ added: v0.1.16
The identifier for the module. Typically this is the fully resolved
filename.
### `module.isPreloading`
<!-- YAML
added: v15.4.0
-->
* Type: {boolean} `true` if the module is running during the Node.js preload
phase.
### `module.loaded`
<!-- YAML
added: v0.1.16