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

Function isUserErrorEmbedMessage

src/core/error/message-helpers.js:44–46  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

42 * @return {boolean} Whether this message was a a user error from an iframe embed.
43 */
44export function isUserErrorEmbedMessage(message) {
45 return message.indexOf(USER_ERROR_EMBED_SENTINEL) >= 0;
46}
47
48/**
49 * Strips the user error sentinel from an error message.

Callers 2

test-log.jsFile · 0.90
reportErrorForWinFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected