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

Function test

test/parallel/test-source-map-invalid-url.js:44–53  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

42sources.forEach(test);
43
44function test(source) {
45 // Eval should tolerate invalid source map url
46 eval(source);
47
48 const base64 = Buffer.from(source).toString('base64url');
49
50 // Dynamic import should tolerate invalid source map url
51 import(`data:text/javascript;base64,${base64}`)
52 .then(common.mustCall());
53}
54
55// eslint-disable-next-line @stylistic/js/spaced-comment
56//# sourceMappingURL=invalid-url

Callers

nothing calls this directly

Calls 4

evalFunction · 0.70
toStringMethod · 0.45
fromMethod · 0.45
thenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…