UNPKG

@opra/core

Version:
19 lines (18 loc) 600 B
"use strict"; 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;