Method
hookClass
(parentObj, hookMethods, fn, type, context, proxyHandler)
Source from the content-addressed store, hash-verified
| 401 | /* A hook specifically for the new operation is essentially an alias for the hook function. |
| 402 | You can pass less classHook parameter and have clear semantics */ |
| 403 | hookClass (parentObj, hookMethods, fn, type, context, proxyHandler) { |
| 404 | return this.hook(parentObj, hookMethods, fn, type, true, context, proxyHandler) |
| 405 | } |
| 406 | |
| 407 | /** |
| 408 | * Cancel the hook of a certain function |
Callers
nothing calls this directly
Tested by
no test coverage detected