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

Method checkArg

javascript/selenium-webdriver/chromium.js:288–292  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

286 */
287 windowSize({ width, height }) {
288 function checkArg(arg) {
289 if (typeof arg !== 'number' || arg <= 0) {
290 throw TypeError('Arguments must be {width, height} with numbers > 0')
291 }
292 }
293
294 checkArg(width)
295 checkArg(height)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected