MCPcopy
hub / github.com/1sdv/TripStar / get

Function get

backend/app/services/xhs_sign/xhs_xs_xsc_56.js:35–42  ·  view source on GitHub ↗
(target, prop, receiver)

Source from the content-addressed store, hash-verified

33function watch(obj, name) {
34 return new Proxy(obj, {
35 get(target, prop, receiver) {
36 let val = Reflect.get(target, prop, receiver);
37 if (val === undefined) {
38 // 只有脚本访问了不存在的属性时才打印,减少日志噪音
39 console.log(`[Proxy] 访问了空属性: ${name}.${String(prop)}`);
40 }
41 return val;
42 },
43 set(target, prop, value) {
44 console.log(`[Proxy] 设置属性: ${name}.${String(prop)} = ${value}`);
45 return Reflect.set(target, prop, value);

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected