MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / before

Method before

scripts/libs/js-hook/index.js:495–497  ·  view source on GitHub ↗
(obj, hookMethods, fn, classHook, context, proxyHandler)

Source from the content-addressed store, hash-verified

493
494 /* Hook before running the source function */
495 before (obj, hookMethods, fn, classHook, context, proxyHandler) {
496 return this.hook(obj, hookMethods, fn, 'before', classHook, context, proxyHandler)
497 }
498
499 /*Hook after the source function is run */
500 after (obj, hookMethods, fn, classHook, context, proxyHandler) {

Callers 1

unFunction · 0.80

Calls 1

hookMethod · 0.95

Tested by

no test coverage detected