@@ -142,22 +142,22 @@ If `cacheDir` is not specified, Node.js will either use the directory specified
142142[` NODE_COMPILE_CACHE = dir` ][] environment variable if it's set, or use
143143` path .join (os .tmpdir (), ' node-compile-cache' )` otherwise. For general use cases, it's
144144recommended to call ` module .enableCompileCache ()` without specifying the ` cacheDir` ,
145- so that the directory can be overriden by the ` NODE_COMPILE_CACHE ` environment
145+ so that the directory can be overridden by the ` NODE_COMPILE_CACHE ` environment
146146variable when necessary.
147147
148148Since compile cache is supposed to be a quiet optimization that is not required for the
149149application to be functional, this method is designed to not throw any exception when the
150150compile cache cannot be enabled. Instead, it will return an object containing an error
151151message in the ` message` field to aid debugging.
152- If compile cache is enabled successefully , the ` directory` field in the returned object
152+ If compile cache is enabled successfully , the ` directory` field in the returned object
153153contains the path to the directory where the compile cache is stored. The ` status`
154154field in the returned object would be one of the ` module .constants .compileCacheStatus `
155155values to indicate the result of the attempt to enable the [module compile cache][].
156156
157157This method only affects the current Node.js instance. To enable it in child worker threads,
158158either call this method in child worker threads too, or set the
159159` process .env .NODE_COMPILE_CACHE ` value to compile cache directory so the behavior can
160- be inheritend into the child workers. The directory can be obtained either from the
160+ be inherited into the child workers. The directory can be obtained either from the
161161` directory` field returned by this method, or with [` module .getCompileCacheDir ()` ][].
162162
163163#### Module compile cache
@@ -264,7 +264,7 @@ changes:
264264 **Default:** ` ' data:' `
265265 * ` data` {any} Any arbitrary, cloneable JavaScript value to pass into the
266266 [` initialize` ][] hook.
267- * ` transferList` {Object\[ ]} [transferrable objects][] to be passed into the
267+ * ` transferList` {Object\[ ]} [transferable objects][] to be passed into the
268268 ` initialize` hook.
269269
270270Register a module that exports [hooks][] that customize Node.js module
@@ -737,7 +737,7 @@ affect the other thread(s), and message channels must be used to communicate
737737between the threads.
738738
739739The ` register` method can be used to pass data to an [` initialize` ][] hook. The
740- data passed to the hook may include transferrable objects like ports.
740+ data passed to the hook may include transferable objects like ports.
741741
742742` ` ` mjs
743743import { register } from ' node:module' ;
@@ -835,7 +835,7 @@ the hooks thread when the hooks module is initialized. Initialization happens
835835when the hooks module is registered via [` register` ][].
836836
837837This hook can receive data from a [` register` ][] invocation, including
838- ports and other transferrable objects. The return value of ` initialize` can be a
838+ ports and other transferable objects. The return value of ` initialize` can be a
839839{Promise}, in which case it will be awaited before the main application thread
840840execution resumes.
841841
@@ -1503,6 +1503,6 @@ returned object contains the following keys:
15031503[prefix-only modules]: modules.md#built-in-modules-with-mandatory-node-prefix
15041504[realm]: https://tc39.es/ecma262/#realm
15051505[source map include directives]: https://sourcemaps.info/spec.html#h.lmz475t4mvbx
1506- [transferrable objects]: worker_threads.md#portpostmessagevalue-transferlist
1506+ [transferable objects]: worker_threads.md#portpostmessagevalue-transferlist
15071507[transform TypeScript features]: typescript.md#typescript-features
15081508[type-stripping]: typescript.md#type-stripping
0 commit comments