diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 7ae144f3afb569..e1a50f435128b8 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -174,6 +174,7 @@ added: v12.16.0 * `maxYoungGenerationSizeMb` {number} * `maxOldGenerationSizeMb` {number} * `codeRangeSizeMb` {number} + * `stackSizeMb` {number} Provides the set of JS engine resource constraints inside this Worker thread. If the `resourceLimits` option was passed to the [`Worker`][] constructor, @@ -625,6 +626,8 @@ changes: recently created objects. * `codeRangeSizeMb` {number} The size of a pre-allocated memory range used for generated code. + * `stackSizeMb` {number} The default maximum stack size for the thread. + Small values may lead to unusable Worker instances. **Default:** `4`. ### Event: `'error'`