surrogate
Version:
Object method hooks made easy
24 lines (19 loc) • 678 B
JavaScript
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "HandlerRule", () => $a6715ca79d90c50c$export$335404972d6e5b14);
class $a6715ca79d90c50c$export$335404972d6e5b14 {
constructor(node, using){
this.node = node;
this.using = using;
}
shouldRun() {
return this.node.shouldRun(this.using);
}
run(node) {
const { container: container, didError: didError } = node;
const handler = container.getHandlerRunner(node);
handler.run(this.using, didError);
}
}
//# sourceMappingURL=surrogate.a039fdb1.js.map