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

Function aliasProperties

lib/internal/debugger/inspect_repl.js:358–363  ·  view source on GitHub ↗
(target, mapping)

Source from the content-addressed store, hash-verified

356}
357
358function aliasProperties(target, mapping) {
359 ArrayPrototypeForEach(ObjectKeys(mapping), (key) => {
360 const desc = ReflectGetOwnPropertyDescriptor(target, key);
361 ObjectDefineProperty(target, mapping[key], desc);
362 });
363}
364
365function createRepl(inspector) {
366 const { Debugger, HeapProfiler, Profiler, Runtime } = inspector;

Callers 1

initializeContextFunction · 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…