GoScrobble/web/node_modules/istanbul-lib-report/lib/report-base.js

17 lines
362 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
'use strict';
// TODO: switch to class private field when targetting node.js 12
const _summarizer = Symbol('ReportBase.#summarizer');
class ReportBase {
constructor(opts = {}) {
this[_summarizer] = opts.summarizer;
}
execute(context) {
context.getTree(this[_summarizer]).visit(this, context);
}
}
module.exports = ReportBase;