(prototype, matchers, wrapper)
| 3544 | } |
| 3545 | |
| 3546 | function addCoreMatchers(prototype, matchers, wrapper) { |
| 3547 | for (const matcherName in matchers) { |
| 3548 | const matcher = matchers[matcherName] |
| 3549 | prototype[matcherName] = wrapper(matcherName, matcher) |
| 3550 | } |
| 3551 | } |
| 3552 | |
| 3553 | function addFilter(source, filter) { |
| 3554 | const result = Object.create(source) |