lix-website/themes/lix/assets/bootstrap/node_modules/karma-browserstack-launcher/worker.js
2024-04-26 22:49:34 -06:00

19 lines
353 B
JavaScript

var EventEmitter = require('events').EventEmitter
var util = require('util')
function Worker (data) {
EventEmitter.call(this)
if (typeof data === 'object' && !Array.isArray(data)) {
var self = this
Object.keys(data).forEach(function (k) {
self[k] = data[k]
})
}
}
util.inherits(Worker, EventEmitter)
module.exports = Worker