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

Method loadScopes

lib/internal/debugger/inspect_repl.js:522–536  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520 }
521
522 loadScopes() {
523 return SafePromiseAllReturnArrayLike(
524 ArrayPrototypeFilter(
525 this.scopeChain,
526 (scope) => scope.type !== 'global',
527 ),
528 async (scope) => {
529 const { objectId } = scope.object;
530 const { result } = await Runtime.getProperties({
531 objectId,
532 generatePreview: true,
533 });
534 return new ScopeSnapshot(scope, result);
535 });
536 }
537
538 list(delta = 5) {
539 return getSourceSnippet(this.location, delta);

Callers 1

evalInCurrentContextFunction · 0.80

Calls 1

getPropertiesMethod · 0.80

Tested by

no test coverage detected