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

Function copyOwnProperties

lib/internal/test_runner/mock/mock.js:882–890  ·  view source on GitHub ↗
(from, to)

Source from the content-addressed store, hash-verified

880
881
882function copyOwnProperties(from, to) {
883 const keys = ObjectKeys(from);
884
885 for (let i = 0; i < keys.length; ++i) {
886 const key = keys[i];
887 const descriptor = ObjectGetOwnPropertyDescriptor(from, key);
888 ObjectDefineProperty(to, key, descriptor);
889 }
890}
891
892function setupSharedModuleState() {
893 if (sharedModuleState === undefined) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…