Lines Matching refs:kHandle
76 const kHandle = Symbol('kHandle');
207 this[kHandle] = new WorkerImpl(url,
214 if (this[kHandle].invalidExecArgv) {
215 throw new ERR_WORKER_INVALID_EXEC_ARGV(this[kHandle].invalidExecArgv);
217 if (this[kHandle].invalidNodeOptions) {
219 this[kHandle].invalidNodeOptions, 'invalid NODE_OPTIONS env variable');
221 this[kHandle].onexit = (code, customErr, customErrReason) => {
224 this[kPort] = this[kHandle].messagePort;
284 this[kHandle].startThread();
346 this[kHandle].onexit = null;
347 this[kHandle] = null;
379 if (this[kHandle] === null) return PromiseResolve();
383 if (this[kHandle] === null) return PromiseResolve();
385 this[kHandle].stopThread();
396 if (this[kHandle] === null) return;
398 this[kHandle].ref();
403 if (this[kHandle] === null) return;
405 this[kHandle].unref();
410 if (this[kHandle] === null) return -1;
412 return this[kHandle].threadId;
428 if (this[kHandle] === null) return {};
430 return makeResourceLimits(this[kHandle].getResourceLimits());
434 const heapSnapshotTaker = this[kHandle] && this[kHandle].takeHeapSnapshot();
502 if (!this[kIsOnline] || !this[kHandle]) {
508 this[kLoopStartTime] = this[kHandle].loopStartTime();
519 const idle = this[kHandle].loopIdleTime();