MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / splitVendorArg

Function splitVendorArg

javascript/selenium-webdriver/generate_bidi.mjs:204–211  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

202}
203
204function splitVendorArg(arg) {
205 const i = arg.indexOf('=')
206 if (i <= 0) {
207 console.error(`Error: --vendor-cddl expects <namespace>=<file>, got: ${arg}`)
208 process.exit(1)
209 }
210 return [arg.slice(0, i), arg.slice(i + 1)]
211}
212
213const EXTENSION_SUFFIX = 'Extension'
214

Callers 1

applyVendorFunction · 0.85

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected