MCPcopy Index your code
hub / github.com/webrtc/samples / mapVersion

Function mapVersion

test/webdriver.js:38–48  ·  view source on GitHub ↗
(browser, version)

Source from the content-addressed store, hash-verified

36}
37
38function mapVersion(browser, version) {
39 const versionMap = {
40 chrome: {
41 unstable: 'canary',
42 },
43 firefox: {
44 unstable: 'nightly',
45 }
46 };
47 return (versionMap[browser] || {})[version] || version;
48}
49
50async function buildDriver(browser = process.env.BROWSER || 'chrome', options = {version: process.env.BVER}) {
51 const version = mapVersion(browser, options.version);

Callers 1

buildDriverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected