MCPcopy Create free account
hub / github.com/ampproject/amphtml / reportWorkerError_

Method reportWorkerError_

extensions/amp-bind/0.1/bind-impl.js:1613–1618  ·  view source on GitHub ↗

* @param {{message: string, stack:string}} e * @param {string} message * @param {!Element=} opt_element * @return {!Error} * @private

(e, message, opt_element)

Source from the content-addressed store, hash-verified

1611 * @private
1612 */
1613 reportWorkerError_(e, message, opt_element) {
1614 const userError = user().createError('%s %s', message, e.message);
1615 userError.stack = e.stack;
1616 this.reportError_(userError, opt_element);
1617 return userError;
1618 }
1619
1620 /**
1621 * @param {!Error} error

Callers 3

addMacros_Method · 0.95
sendBindingsToWorker_Method · 0.95
evaluateExpression_Method · 0.95

Calls 3

reportError_Method · 0.95
userFunction · 0.90
createErrorMethod · 0.45

Tested by

no test coverage detected