@opra/core
Version:
Opra schema package
19 lines (18 loc) • 600 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExecutionContext = void 0;
const node_events_async_1 = require("node-events-async");
/**
* @class ExecutionContext
*/
class ExecutionContext extends node_events_async_1.AsyncEventEmitter {
constructor(init) {
super();
this.errors = [];
this.document = init.document;
this.documentNode = init.documentNode || init.document.node;
this.protocol = init.protocol || 'custom';
this.platform = init.platform || '';
}
}
exports.ExecutionContext = ExecutionContext;