MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / get

Function get

app/services/tdc_vm_runner.cjs:38–48  ·  view source on GitHub ↗
(obj, prop)

Source from the content-addressed store, hash-verified

36function makeNoopProxy(target = {}) {
37 return new Proxy(target, {
38 get(obj, prop) {
39 if (prop === Symbol.toPrimitive) {
40 return () => '';
41 }
42 if (prop in obj) {
43 return obj[prop];
44 }
45 return function noop() {
46 return undefined;
47 };
48 },
49 });
50}
51

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected