MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / set

Function set

dashboard/hermes-wrapper/src/entry.js:94–100  ·  view source on GitHub ↗
(target, prop, value)

Source from the content-addressed store, hash-verified

92 return typeof value === "function" ? value.bind(target) : value;
93 },
94 set(target, prop, value) {
95 if (Object.prototype.hasOwnProperty.call(sandboxGlobals, prop)) {
96 sandboxGlobals[prop] = value;
97 return true;
98 }
99 return Reflect.set(target, prop, value);
100 },
101 has(target, prop) {
102 return (
103 Object.prototype.hasOwnProperty.call(sandboxGlobals, prop) ||

Calls 2

callMethod · 0.45
setMethod · 0.45