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

Method constructor

lib/internal/debugger/inspect_repl.js:328–336  ·  view source on GitHub ↗
(scope, properties)

Source from the content-addressed store, hash-verified

326
327class ScopeSnapshot {
328 constructor(scope, properties) {
329 ObjectAssign(this, scope);
330 this.properties = new SafeMap();
331 this.completionGroup = ArrayPrototypeMap(properties, (prop) => {
332 const value = new RemoteObject(prop.value);
333 this.properties.set(prop.name, value);
334 return prop.name;
335 });
336 }
337
338 [customInspectSymbol](depth, opts) {
339 const type = StringPrototypeToUpperCase(this.type[0]) +

Callers

nothing calls this directly

Calls 2

ObjectAssignFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected