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

Method error

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

Source from the content-addressed store, hash-verified

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.

Callers 15

KFunction · 0.80
nFunction · 0.80
initCacheFunction · 0.80
getGroupIdFunction · 0.80
initCacheFunction · 0.80
downloadCaptionFunction · 0.80
setEnableForAllTabFunction · 0.80
fetchAllFriends_Function · 0.80
downloadFunction · 0.80

Calls 1

hookMethod · 0.95

Tested by

no test coverage detected