Lines Matching refs:kHandle
71 const kHandle = Symbol('kHandle'); constant
190 this[kHandle] = new WorkerImpl(url,
195 if (this[kHandle].invalidExecArgv) {
196 throw new ERR_WORKER_INVALID_EXEC_ARGV(this[kHandle].invalidExecArgv);
198 if (this[kHandle].invalidNodeOptions) {
200 this[kHandle].invalidNodeOptions, 'invalid NODE_OPTIONS env variable');
202 this[kHandle].onexit = (code, customErr, customErrReason) => {
205 this[kPort] = this[kHandle].messagePort;
263 this[kHandle].startThread();
320 this[kHandle].onexit = null;
321 this[kHandle] = null;
353 if (this[kHandle] === null) return PromiseResolve();
357 if (this[kHandle] === null) return PromiseResolve();
359 this[kHandle].stopThread();
370 if (this[kHandle] === null) return;
372 this[kHandle].ref();
377 if (this[kHandle] === null) return;
379 this[kHandle].unref();
384 if (this[kHandle] === null) return -1;
386 return this[kHandle].threadId;
402 if (this[kHandle] === null) return {};
404 return makeResourceLimits(this[kHandle].getResourceLimits());
408 const heapSnapshotTaker = this[kHandle] && this[kHandle].takeHeapSnapshot();
462 if (!this[kIsOnline] || !this[kHandle]) {
468 this[kLoopStartTime] = this[kHandle].loopStartTime();
479 const idle = this[kHandle].loopIdleTime();