worker_threads.resourceLimits


提供此 Worker 线程内的 JS 引擎资源限制集合。如果在 Worker 构造函数中传入了 resourceLimits 选项,则此处与其值相匹配。

🌐 Provides the set of JS engine resource constraints inside this Worker thread. If the resourceLimits option was passed to the Worker constructor, this matches its values.

如果在主线程中使用此,则其值为空对象。

🌐 If this is used in the main thread, its value is an empty object.