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

Method checkArg

javascript/selenium-webdriver/firefox.js:220–224  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

218 */
219 windowSize({ width, height }) {
220 function checkArg(arg) {
221 if (typeof arg !== 'number' || arg <= 0) {
222 throw TypeError('Arguments must be {width, height} with numbers > 0')
223 }
224 }
225
226 checkArg(width)
227 checkArg(height)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected