MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / tryParse

Function tryParse

javascript/selenium-webdriver/lib/http.js:485–492  ·  view source on GitHub ↗

* @param {string} str . * @return {?} .

(str)

Source from the content-addressed store, hash-verified

483 * @return {?} .
484 */
485function tryParse(str) {
486 try {
487 return JSON.parse(str)
488 /*eslint no-unused-vars: "off"*/
489 } catch (ignored) {
490 // Do nothing.
491 }
492}
493
494/**
495 * Callback used to parse {@link Response} objects from a

Callers 1

parseHttpResponseFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected