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

Method addScriptSource

deps/v8/tools/profile.mjs:634–638  ·  view source on GitHub ↗
(id, url, source)

Source from the content-addressed store, hash-verified

632 }
633
634 addScriptSource(id, url, source) {
635 const script = this.getOrCreateScript(id);
636 script.update(url, source);
637 this.urlToScript_.set(url, script);
638 }
639
640 getOrCreateScript(id) {
641 let script = this.scripts_[id];

Callers 3

processScriptSourceMethod · 0.80
processSharedLibraryMethod · 0.80
processScriptSourceMethod · 0.80

Calls 3

getOrCreateScriptMethod · 0.95
updateMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected