(obj, hookMethods, fn, classHook, context, proxyHandler)
| 509 | |
| 510 | /* Hook when the source function runs incorrectly */ |
| 511 | error (obj, hookMethods, fn, classHook, context, proxyHandler) { |
| 512 | return this.hook(obj, hookMethods, fn, 'error', classHook, context, proxyHandler) |
| 513 | } |
| 514 | |
| 515 | /* The underlying implementation logic is the same as replace. |
| 516 | It replaces the function to be hooked and no longer runs the source function. |
no test coverage detected