(obj, hookMethods, fn, classHook, context, proxyHandler)
| 504 | /* Replace the function to be hooked, no longer run the source function, |
| 505 | and replace it with running other logic */ |
| 506 | replace (obj, hookMethods, fn, classHook, context, proxyHandler) { |
| 507 | return this.hook(obj, hookMethods, fn, 'replace', classHook, context, proxyHandler) |
| 508 | } |
| 509 | |
| 510 | /* Hook when the source function runs incorrectly */ |
| 511 | error (obj, hookMethods, fn, classHook, context, proxyHandler) { |
no test coverage detected