@@ -989,14 +989,17 @@ changes:
989989 are passed in ` workerData ` , a ` transferList ` is required for those
990990 items or [ ` ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST ` ] [ ] is thrown.
991991 See [ ` port.postMessage() ` ] [ ] for more information.
992- * ` resourceLimits ` {Object} An optional set of resource limits for the new
993- JS engine instance. Reaching these limits leads to termination of the
994- ` Worker ` instance. These limits only affect the JS engine, and no external
995- data, including no ` ArrayBuffer ` s. Even if these limits are set, the process
996- may still abort if it encounters a global out-of-memory situation.
997- * ` maxOldGenerationSizeMb ` {number} The maximum size of the main heap in MB.
992+ * ` resourceLimits ` {Object} An optional set of resource limits for the new JS
993+ engine instance. Reaching these limits leads to termination of the ` Worker `
994+ instance. These limits only affect the JS engine, and no external data,
995+ including no ` ArrayBuffer ` s. Even if these limits are set, the process may
996+ still abort if it encounters a global out-of-memory situation.
997+ * ` maxOldGenerationSizeMb ` {number} The maximum size of the main heap in
998+ MB. If the command-line argument [ ` --max-old-space-size ` ] [ ] is set, it
999+ overrides this setting.
9981000 * ` maxYoungGenerationSizeMb ` {number} The maximum size of a heap space for
999- recently created objects.
1001+ recently created objects. If the command-line argument
1002+ [ ` --max-semi-space-size ` ] [ ] is set, it overrides this setting.
10001003 * ` codeRangeSizeMb ` {number} The size of a pre-allocated memory range
10011004 used for generated code.
10021005 * ` stackSizeMb ` {number} The default maximum stack size for the thread.
@@ -1334,6 +1337,8 @@ thread spawned will spawn another until the application crashes.
13341337[` ' close' ` event]: #event-close
13351338[` ' exit' ` event]: #event-exit
13361339[` ' online' ` event]: #event-online
1340+ [` -- max- old- space- size` ]: cli.md#--max-old-space-sizesize-in-megabytes
1341+ [` -- max- semi- space- size` ]: cli.md#--max-semi-space-sizesize-in-megabytes
13371342[` ArrayBuffer ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
13381343[` AsyncResource` ]: async_hooks.md#class-asyncresource
13391344[` Buffer .allocUnsafe ()` ]: buffer.md#static-method-bufferallocunsafesize
0 commit comments