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

Function getBrowserProperties

test/common/wpt.js:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13const workerPath = path.join(__dirname, 'wpt/worker.js');
14
15function getBrowserProperties() {
16 const { node: version } = process.versions; // e.g. 18.13.0, 20.0.0-nightly202302078e6e215481
17 const release = /^\d+\.\d+\.\d+$/.test(version);
18 const browser = {
19 browser_channel: release ? 'stable' : 'experimental',
20 browser_version: version,
21 };
22
23 return browser;
24}
25
26/**
27 * Return one of three expected values

Callers 1

writeMethod · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…