新增于: v13.2.0, v12.16.0
为此工作线程提供了一组 JS 引擎资源约束。
如果将 resourceLimits
选项传给 Worker
构造函数,则这与其值匹配。
如果工作线程已经停止,则返回值是空对象。
Added in: v13.2.0, v12.16.0
Provides the set of JS engine resource constraints for this Worker thread.
If the resourceLimits
option was passed to the Worker
constructor,
this matches its values.
If the worker has stopped, the return value is an empty object.