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

Method getScriptWithSource

deps/v8/test/inspector/protocol-test.js:294–304  ·  view source on GitHub ↗
(scriptId, forceSourceRequest)

Source from the content-addressed store, hash-verified

292 }
293
294 async getScriptWithSource(scriptId, forceSourceRequest) {
295 var script = this._scriptMap.get(scriptId);
296 if (forceSourceRequest || !(script.scriptSource || script.bytecode)) {
297 var message = await this.Protocol.Debugger.getScriptSource({ scriptId });
298 script.scriptSource = message.result.scriptSource;
299 if (message.result.bytecode) {
300 script.bytecode = InspectorTest.decodeBase64(message.result.bytecode);
301 }
302 }
303 return script;
304 }
305
306 async logSourceLocation(location, forceSourceRequest) {
307 var scriptId = location.scriptId;

Callers 2

logSourceLocationMethod · 0.80
logBreakLocationsMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected