MCPcopy
hub / github.com/ZToolsCenter/ZTools / apply

Function apply

src/main/utils/lanzou.ts:326–331  ·  view source on GitHub ↗
(target, thisArg, args)

Source from the content-addressed store, hash-verified

324 if (typeof value === 'function') {
325 return new Proxy(value, {
326 apply(target, thisArg, args) {
327 accessLog.push(
328 `[执行函数] ${fullPath}(${args.map((a) => JSON.stringify(a).slice(0, 50)).join(', ')})`
329 )
330 return Reflect.apply(target, thisArg, args)
331 }
332 })
333 }
334

Callers

nothing calls this directly

Calls 1

stringifyMethod · 0.80

Tested by

no test coverage detected