Build system: add bundling analysis to dev build (#150)
[poolifier.git] / tests / worker / thread / errorWorker.js
... / ...
CommitLineData
1'use strict'
2const { ThreadWorker } = require('../../../lib/index')
3
4function error (data) {
5 throw new Error(data)
6}
7
8module.exports = new ThreadWorker(error, { maxInactiveTime: 500 })