UNPKG

surrogate

Version:

Object method hooks made easy

19 lines 535 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HandlerRule = void 0; class HandlerRule { constructor(node, using) { this.node = node; this.using = using; } shouldRun() { return this.node.shouldRun(this.using); } run(node) { const { container, didError } = node; const handler = container.getHandlerRunner(node); handler.run(this.using, didError); } } exports.HandlerRule = HandlerRule; //# sourceMappingURL=handlerRule.js.map