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

Method addInlineScript

deps/v8/test/inspector/protocol-test.js:168–172  ·  view source on GitHub ↗
(string, url)

Source from the content-addressed store, hash-verified

166 }
167
168 addInlineScript(string, url) {
169 const match = (new Error().stack).split('\n')[2].match(/([0-9]+):([0-9]+)/);
170 this.addScript(
171 string, match[1] * 1, match[1] * 1 + '.addInlineScript('.length, url);
172 }
173
174 addModule(string, url, lineOffset, columnOffset) {
175 utils.compileAndRunWithOrigin(this.id, string, url, lineOffset || 0, columnOffset || 0, true);

Calls 3

addScriptMethod · 0.80
matchMethod · 0.65
splitMethod · 0.45

Tested by

no test coverage detected