MCPcopy
hub / github.com/spritejs/spritejs / define

Function define

docs/demo/spritejs.worker.js:9905–9913  ·  view source on GitHub ↗
(obj, key, value)

Source from the content-addressed store, hash-verified

9903 var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
9904
9905 function define(obj, key, value) {
9906 Object.defineProperty(obj, key, {
9907 value: value,
9908 enumerable: true,
9909 configurable: true,
9910 writable: true
9911 });
9912 return obj[key];
9913 }
9914 try {
9915 // IE 8 has a broken Object.defineProperty that only works on DOM objects.
9916 define({}, "");

Callers 2

spritejs.worker.jsFile · 0.70
defineIteratorMethodsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected