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

Function convertScriptSourceToDataUrl

test/parallel/test-worker-internal-modules.mjs:13–15  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

11`;
12
13function convertScriptSourceToDataUrl(script) {
14 return new URL(`data:text/javascript,${encodeURIComponent(script)}`);
15}
16
17describe('Worker threads should not be able to access internal modules', () => {
18 before(() => tmpdir.refresh());

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…