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

Function maybeThrow

3p/environment.js:221–226  ·  view source on GitHub ↗

* Checks for security error.

()

Source from the content-addressed store, hash-verified

219 * Checks for security error.
220 */
221 function maybeThrow() {
222 // Prevent deep recursion.
223 if (count++ > 2) {
224 throw new Error('security error');
225 }
226 }
227 try {
228 win.alert = maybeThrow;
229 win.prompt = function () {

Callers 1

blockSyncPopupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected