clusterphone.js
function getWorkerData(worker) {
  /* istanbul ignore if */
  if (!worker) {
    throw new TypeError("Trying to get private data for null worker?!");
  }

  var data = worker[clusterphone.workerDataAccessor];
  if (!data) {
    worker[clusterphone.workerDataAccessor] = data = {};
  }

  return data;
}
function getWorkerData(worker) {
  /* istanbul ignore if */
  if (!worker) {
    throw new TypeError("Trying to get private data for null worker?!");
  }

  var data = worker[clusterphone.workerDataAccessor];
  if (!data) {
    worker[clusterphone.workerDataAccessor] = data = {};
  }

  return data;
}
function getWorkerData ( worker ) { /* istanbul ignore if */ if ( ! worker ) { throw new TypeError ( "Trying to get private data for null worker?!" ) ; } var data = worker [ clusterphone . workerDataAccessor ] ; if ( ! data ) { worker [ clusterphone . workerDataAccessor ] = data = { } ; } return data ; }
Gets our private data section from a worker object.
Gets our private data section from a worker object .