Skip to content

Commit fb07f0c

Browse files
committed
@legendecas suggestion
1 parent c1797e0 commit fb07f0c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/internal/vm.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ function registerImportModuleDynamically(referrer, importModuleDynamically) {
105105
* @param {string} filename - The filename to use for the compiled function.
106106
* @param {number} lineOffset - The line offset to use for the compiled function.
107107
* @param {number} columnOffset - The column offset to use for the compiled function.
108-
* @param {Buffer} cachedData - The cached data to use for the compiled function.
108+
* @param {Buffer} [cachedData=undefined] - The cached data to use for the compiled function.
109109
* @param {boolean} produceCachedData - Whether to produce cached data for the compiled function.
110-
* @param {ReturnType<import('vm').createContext} parsingContext - The parsing context to use for the compiled function.
111-
* @param {object[]} contextExtensions - An array of context extensions to use for the compiled function.
112-
* @param {string[]} params - An optional array of parameter names for the compiled function.
113-
* @param {object} hostDefinedOptionId - The host defined option id to use for the compiled function.
114-
* @param {import('internal/modules/esm/utils').ImportModuleDynamicallyCallback} importModuleDynamically -
110+
* @param {ReturnType<import('vm').createContext} [parsingContext=undefined] - The parsing context to use for the compiled function.
111+
* @param {object[]} [contextExtensions=[]] - An array of context extensions to use for the compiled function.
112+
* @param {string[]} [params] - An optional array of parameter names for the compiled function.
113+
* @param {symbol} hostDefinedOptionId - A symbol referenced by the field `host_defined_option_symbol`.
114+
* @param {import('internal/modules/esm/utils').ImportModuleDynamicallyCallback} [importModuleDynamically] -
115115
* A function to use for dynamically importing modules.
116116
* @returns {object} An object containing the compiled function and any associated data.
117117
* @throws {TypeError} If any of the arguments are of the wrong type.

0 commit comments

Comments
 (0)