MCPcopy Index your code
hub / github.com/nodejs/node / setOwnProperty

Function setOwnProperty

lib/internal/util.js:712–721  ·  view source on GitHub ↗

* Mimics `obj[key] = value` but ignoring potential prototype inheritance. * @param {any} obj * @param {string} key * @param {any} value * @returns {any}

(obj, key, value)

Source from the content-addressed store, hash-verified

710 * @returns {any}
711 */
712function setOwnProperty(obj, key, value) {
713 ObjectDefineProperty(obj, key, {
714 __proto__: null,
715 configurable: true,
716 enumerable: true,
717 value,
718 writable: true,
719 });
720 return value;
721}
722
723let internalGlobal;
724function getInternalGlobal() {

Callers 15

assert.jsFile · 0.85
codedTypeErrorFunction · 0.85
prepareWebCryptoResultFunction · 0.85
jobPromiseThenFunction · 0.85
detachFromUserPrototypesFunction · 0.85
makeRequireFunctionFunction · 0.85
#parseMethod · 0.85
loadPackageMapFunction · 0.85
finalizeResolutionFunction · 0.85
moduleResolveFunction · 0.85
createCJSModuleWrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…