@@ -30,7 +30,7 @@ const {
30
30
} = require ( 'internal/options' ) ;
31
31
32
32
/**
33
- * Checks if the given object is a context object.
33
+ * Checks if the given object is a ContextifyContext
34
34
* @param {object } object - The object to check.
35
35
* @returns {boolean } - Returns true if the object is a context object, else false.
36
36
*/
@@ -41,7 +41,7 @@ function isContext(object) {
41
41
}
42
42
43
43
/**
44
- * Retrieves the host-defined option ID based on the provided importModuleDynamically and hint.
44
+ * Computes the host-defined option ID based on the provided importModuleDynamically and hint.
45
45
* @param {import('internal/modules/esm/utils').ImportModuleDynamicallyCallback | symbol | undefined } importModuleDynamically -
46
46
* The importModuleDynamically function or undefined.
47
47
* @param {string } hint - The hint for the option ID.
@@ -80,7 +80,7 @@ function getHostDefinedOptionId(importModuleDynamically, hint) {
80
80
}
81
81
82
82
/**
83
- * Registers a dynamically imported module for customization .
83
+ * Registers a compiled referrer for custom import() callback handling in it .
84
84
* @param {string } referrer - The path of the referrer module.
85
85
* @param {import('internal/modules/esm/utils').ImportModuleDynamicallyCallback | symbol } importModuleDynamically - The
86
86
* dynamically imported module function to be registered.
@@ -108,7 +108,7 @@ function registerImportModuleDynamically(referrer, importModuleDynamically) {
108
108
* @param {string } filename - The filename to use for the compiled function.
109
109
* @param {number } lineOffset - The line offset to use for the compiled function.
110
110
* @param {number } columnOffset - The column offset to use for the compiled function.
111
- * @param {Buffer } [cachedData=undefined] - The cached data to use for the compiled function.
111
+ * @param {ArrayBufferView } [cachedData=undefined] - The cached data to use for the compiled function.
112
112
* @param {boolean } produceCachedData - Whether to produce cached data for the compiled function.
113
113
* @param {ReturnType<import('vm').createContext } [parsingContext=undefined] - The parsing context to use for the
114
114
* compiled function.
@@ -161,7 +161,7 @@ function internalCompileFunction(
161
161
* @param {string } filename - The filename of the script.
162
162
* @param {number } lineOffset - The line offset of the script.
163
163
* @param {number } columnOffset - The column offset of the script.
164
- * @param {Buffer } cachedData - The cached data of the script.
164
+ * @param {ArrayBufferView } cachedData - The cached data of the script.
165
165
* @param {boolean } produceCachedData - Indicates whether to produce cached data.
166
166
* @param {object } parsingContext - The parsing context of the script.
167
167
* @param {symbol } hostDefinedOptionId - The host-defined option ID.
0 commit comments