MCPcopy
hub / github.com/ampproject/amphtml / assertString

Method assertString

src/utils/log.js:433–439  ·  view source on GitHub ↗

* Throws an error if the first argument isn't a string. The string can * be empty. * * For more details see `assert`. * * @param {*} shouldBeString * @param {!Array|string=} opt_message The assertion message * @return {string} The string value. Can be an empty string. * @clos

(shouldBeString, opt_message)

Source from the content-addressed store, hash-verified

431 * @closurePrimitive {asserts.matchesReturn}
432 */
433 assertString(shouldBeString, opt_message) {
434 return assertions.assertString(
435 this.boundAssertFn_,
436 shouldBeString,
437 opt_message
438 );
439 }
440
441 /**
442 * Throws an error if the first argument isn't a number. The allowed values

Callers 15

input.jsFile · 0.80
input.jsFile · 0.80
addContextToIframeMethod · 0.80
sendMessageMethod · 0.80
constructorMethod · 0.80
master_Method · 0.80
test-log.jsFile · 0.80
attachShadowDocMethod · 0.80
getOrCreateAdCidFunction · 0.80
handleClickUrlFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected