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

Function boundValue

javascript/selenium-webdriver/project_bidi_schema.mjs:201–201  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

199// Only a numeric literal is carried; a named constant (`0..max-len`) is not resolved, so the
200// caller fails closed instead of silently dropping the bound.
201const boundValue = (b) => (typeof b?.Value === 'number' ? b.Value : undefined)
202
203// The tighter bound wins: `(0..10) .ge 5` raises the minimum, `(0..10) .ge -1` leaves it.
204function narrow(node, { side, exclusive }, value) {

Callers 2

withOperatorFunction · 0.85
projectEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected