| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 46fb69d commit 4c978b4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1158,13 +1158,13 @@ validating the import attributes. | |||
| 1158 | 1158 | ||
| 1159 | 1159 | The final value of `format` must be one of the following: | |
| 1160 | 1160 | ||
| 1161 | - | `format` | Description | Acceptable types for `source` returned by `load` | | ||
| 1162 | - | ------------ | ------------------------------ | -------------------------------------------------------------------------- | | ||
| 1163 | - | `'builtin'` | Load a Node.js builtin module | Not applicable | | ||
| 1164 | - | `'commonjs'` | Load a Node.js CommonJS module | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][], `null`, `undefined` } | | ||
| 1165 | - | `'json'` | Load a JSON file | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][] } | | ||
| 1166 | - | `'module'` | Load an ES module | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][] } | | ||
| 1167 | - | `'wasm'` | Load a WebAssembly module | { [`ArrayBuffer`][], [`TypedArray`][] } | | ||
| 1161 | + | `format` | Description | Acceptable types for `source` returned by `load` | | ||
| 1162 | + | ------------ | ------------------------------ | -------------------------------------------------- | | ||
| 1163 | + | `'builtin'` | Load a Node.js builtin module | {null} | | ||
| 1164 | + | `'commonjs'` | Load a Node.js CommonJS module | {string\|ArrayBuffer\|TypedArray\|null\|undefined} | | ||
| 1165 | + | `'json'` | Load a JSON file | {string\|ArrayBuffer\|TypedArray} | | ||
| 1166 | + | `'module'` | Load an ES module | {string\|ArrayBuffer\|TypedArray} | | ||
| 1167 | + | `'wasm'` | Load a WebAssembly module | {ArrayBuffer\|TypedArray} | | ||
| 1168 | 1168 | ||
| 1169 | 1169 | The value of `source` is ignored for type `'builtin'` because currently it is | |
| 1170 | 1170 | not possible to replace the value of a Node.js builtin (core) module. | |
@@ -1221,8 +1221,8 @@ of module format. | |||
| 1221 | 1221 | ||
| 1222 | 1222 | > These types all correspond to classes defined in ECMAScript. | |
| 1223 | 1223 | ||
| 1224 | - * The specific [`ArrayBuffer`][] object is a [`SharedArrayBuffer`][]. | ||
| 1225 | - * The specific [`TypedArray`][] object is a [`Uint8Array`][]. | ||
| 1224 | + * The specific {ArrayBuffer} object is a {SharedArrayBuffer}. | ||
| 1225 | + * The specific {TypedArray} object is a {Uint8Array}. | ||
| 1226 | 1226 | ||
| 1227 | 1227 | If the source value of a text-based format (i.e., `'json'`, `'module'`) | |
| 1228 | 1228 | is not a string, it is converted to a string using [`util.TextDecoder`][]. | |
@@ -1701,14 +1701,10 @@ returned object contains the following keys: | |||
| 1701 | 1701 | [`--enable-source-maps`]: cli.md#--enable-source-maps | |
| 1702 | 1702 | [`--import`]: cli.md#--importmodule | |
| 1703 | 1703 | [`--require`]: cli.md#-r---require-module | |
| 1704 | - [`ArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer | ||
| 1705 | 1704 | [`NODE_COMPILE_CACHE=dir`]: cli.md#node_compile_cachedir | |
| 1706 | 1705 | [`NODE_DISABLE_COMPILE_CACHE=1`]: cli.md#node_disable_compile_cache1 | |
| 1707 | 1706 | [`NODE_V8_COVERAGE=dir`]: cli.md#node_v8_coveragedir | |
| 1708 | - [`SharedArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer | ||
| 1709 | 1707 | [`SourceMap`]: #class-modulesourcemap | |
| 1710 | - [`TypedArray`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray | ||
| 1711 | - [`Uint8Array`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array | ||
| 1712 | 1708 | [`initialize`]: #initialize | |
| 1713 | 1709 | [`module.constants.compileCacheStatus`]: #moduleconstantscompilecachestatus | |
| 1714 | 1710 | [`module.enableCompileCache()`]: #moduleenablecompilecachecachedir | |
@@ -1718,7 +1714,6 @@ returned object contains the following keys: | |||
| 1718 | 1714 | [`os.tmpdir()`]: os.md#ostmpdir | |
| 1719 | 1715 | [`registerHooks`]: #moduleregisterhooksoptions | |
| 1720 | 1716 | [`register`]: #moduleregisterspecifier-parenturl-options | |
| 1721 | - [`string`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String | ||
| 1722 | 1717 | [`util.TextDecoder`]: util.md#class-utiltextdecoder | |
| 1723 | 1718 | [chain]: #chaining | |
| 1724 | 1719 | [hooks]: #customization-hooks | |
| Back | FazBrowse Home | New Git URL |
0 commit comments