(scriptUrl: string)
| 273 | }; |
| 274 | |
| 275 | const _createTrustedScriptURL = function (scriptUrl: string): string { |
| 276 | _assertNotInTrustedTypesPolicy(); |
| 277 | |
| 278 | IN_TRUSTED_TYPES_POLICY++; |
| 279 | try { |
| 280 | return trustedTypesPolicy.createScriptURL(scriptUrl); |
| 281 | } finally { |
| 282 | IN_TRUSTED_TYPES_POLICY--; |
| 283 | } |
| 284 | }; |
| 285 | |
| 286 | // Lazily resolve (and cache) the instance's internal default policy. |
| 287 | // Resolution is attempted at most once: a successful `createPolicy` cannot be |
no test coverage detected