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

Function getFeatures

test/fixtures/wpt/resources/testdriver.js:7–14  ·  view source on GitHub ↗
(scriptSrc)

Source from the content-addressed store, hash-verified

5
6 const features = (() => {
7 function getFeatures(scriptSrc) {
8 try {
9 const url = new URL(scriptSrc);
10 return url.searchParams.getAll('feature');
11 } catch (e) {
12 return [];
13 }
14 }
15
16 return getFeatures(document?.currentScript?.src ?? '');
17 })();

Callers 1

testdriver.jsFile · 0.85

Calls 1

getAllMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…