lix-website/themes/lix/assets/bootstrap/node_modules/karma-browserstack-launcher/worker.js

19 lines
353 B
JavaScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
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