- constructor(workerScript: string, workerOptions?: WorkerOptions) {
- super(workerScript, workerOptions);
- this.workerOptions.poolOptions.errorHandler =
- this.workerOptions?.poolOptions?.errorHandler ?? WorkerUtils.defaultErrorHandler;
- this.workerOptions.poolOptions.exitHandler =
- this.workerOptions?.poolOptions?.exitHandler ?? WorkerUtils.defaultExitHandler;
+ constructor (workerScript: string, workerOptions: WorkerOptions) {
+ super(workerScript, workerOptions)