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

Function getSourceSnippet

lib/internal/debugger/inspect_repl.js:511–515  ·  view source on GitHub ↗
(location, delta = 5)

Source from the content-addressed store, hash-verified

509 }
510
511 async function getSourceSnippet(location, delta = 5) {
512 const { scriptId } = location;
513 const { scriptSource } = await Debugger.getScriptSource({ scriptId });
514 return new SourceSnippet(location, delta, scriptSource);
515 }
516
517 class CallFrame {
518 constructor(callFrame) {

Callers 2

listMethod · 0.85
registerBreakpointFunction · 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…