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

Function ensure

javascript/selenium-webdriver/generate_bidi.mjs:580–580  ·  view source on GitHub ↗
(domain)

Source from the content-addressed store, hash-verified

578 const model = {}
579 const resultTypes = buildResultTypeNames(ast)
580 const ensure = (domain) => (model[domain] ??= { commands: [], events: [] })
581
582 // A vendor entry carries its namespace so the schema projector can file it under
583 // `vendor.<namespace>`; spec entries carry none, so a vendor-free AST yields the same model.

Callers 1

buildModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected