MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / newObjectInRealm

Function newObjectInRealm

out/cli.cjs:2713–2719  ·  view source on GitHub ↗
(globalObject, object)

Source from the content-addressed store, hash-verified

2711 }
2712 }
2713 function newObjectInRealm(globalObject, object) {
2714 const ctorRegistry = initCtorRegistry(globalObject);
2715 return Object.defineProperties(
2716 Object.create(ctorRegistry["%Object.prototype%"]),
2717 Object.getOwnPropertyDescriptors(object)
2718 );
2719 }
2720 var wrapperSymbol = Symbol("wrapper");
2721 var implSymbol = Symbol("impl");
2722 var sameObjectCaches = Symbol("SameObject caches");

Callers 1

nextFunction · 0.85

Calls 2

initCtorRegistryFunction · 0.85
createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…