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