@@ -1042,13 +1042,13 @@ validating the import attributes.
10421042
10431043The final value of ` format` must be one of the following:
10441044
1045- | ` format` | Description | Acceptable types for ` source` returned by ` load` |
1046- | ------------ | ------------------------------ | -------------------------------------------------------------------------- |
1047- | ` ' builtin' ` | Load a Node.js builtin module | Not applicable |
1048- | ` ' commonjs' ` | Load a Node.js CommonJS module | { [ ` string` ][], [ ` ArrayBuffer ` ][], [ ` TypedArray` ][], ` null ` , ` undefined ` } |
1049- | ` ' json' ` | Load a JSON file | { [ ` string` ][], [ ` ArrayBuffer ` ][], [ ` TypedArray` ][] } |
1050- | ` ' module' ` | Load an ES module | { [ ` string` ][], [ ` ArrayBuffer ` ][], [ ` TypedArray` ][] } |
1051- | ` ' wasm' ` | Load a WebAssembly module | { [ ` ArrayBuffer ` ][], [ ` TypedArray` ][] } |
1045+ | ` format` | Description | Acceptable types for ` source` returned by ` load` |
1046+ | ------------ | ------------------------------ | -------------------------------------------------- |
1047+ | ` ' builtin' ` | Load a Node.js builtin module | {null} |
1048+ | ` ' commonjs' ` | Load a Node.js CommonJS module | {string\| ArrayBuffer\| TypedArray\| null\| undefined} |
1049+ | ` ' json' ` | Load a JSON file | {string\| ArrayBuffer\| TypedArray} |
1050+ | ` ' module' ` | Load an ES module | {string\| ArrayBuffer\| TypedArray} |
1051+ | ` ' wasm' ` | Load a WebAssembly module | {ArrayBuffer\| TypedArray} |
10521052
10531053The value of ` source` is ignored for type ` ' builtin' ` because currently it is
10541054not possible to replace the value of a Node.js builtin (core) module.
@@ -1091,8 +1091,8 @@ export async function load(url, context, nextLoad) {
10911091
10921092> These types all correspond to classes defined in ECMAScript.
10931093
1094- * The specific [ ` ArrayBuffer ` ][] object is a [ ` SharedArrayBuffer ` ][] .
1095- * The specific [ ` TypedArray` ][] object is a [ ` Uint8Array ` ][] .
1094+ * The specific { ArrayBuffer} object is a { SharedArrayBuffer} .
1095+ * The specific { TypedArray} object is a { Uint8Array} .
10961096
10971097If the source value of a text-based format (i.e., ` ' json' ` , ` ' module' ` )
10981098is not a string, it is converted to a string using [` util .TextDecoder ` ][].
@@ -1477,14 +1477,10 @@ returned object contains the following keys:
14771477[V8 code cache]: https://v8.dev/blog/code-caching-for-devs
14781478[` " exports" ` ]: packages.md#exports
14791479[` -- enable- source- maps` ]: cli.md#--enable-source-maps
1480- [` ArrayBuffer ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
14811480[` NODE_COMPILE_CACHE = dir` ]: cli.md#node_compile_cachedir
14821481[` NODE_DISABLE_COMPILE_CACHE = 1 ` ]: cli.md#node_disable_compile_cache1
14831482[` NODE_V8_COVERAGE = dir` ]: cli.md#node_v8_coveragedir
1484- [` SharedArrayBuffer ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
14851483[` SourceMap` ]: #class-modulesourcemap
1486- [` TypedArray` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
1487- [` Uint8Array ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
14881484[` initialize` ]: #initialize
14891485[` module .constants .compileCacheStatus ` ]: #moduleconstantscompilecachestatus
14901486[` module .enableCompileCache ()` ]: #moduleenablecompilecachecachedir
@@ -1493,7 +1489,6 @@ returned object contains the following keys:
14931489[` module ` ]: #the-module-object
14941490[` os .tmpdir ()` ]: os.md#ostmpdir
14951491[` register` ]: #moduleregisterspecifier-parenturl-options
1496- [` string` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String
14971492[` util .TextDecoder ` ]: util.md#class-utiltextdecoder
14981493[chain]: #chaining
14991494[hooks]: #customization-hooks
0 commit comments