(scriptUrl: string)
| 331 | }; |
| 332 | |
| 333 | const _createTrustedScriptURL = function (scriptUrl: string): string { |
| 334 | _assertNotInTrustedTypesPolicy(); |
| 335 | |
| 336 | IN_TRUSTED_TYPES_POLICY++; |
| 337 | try { |
| 338 | return trustedTypesPolicy.createScriptURL(scriptUrl); |
| 339 | } finally { |
| 340 | IN_TRUSTED_TYPES_POLICY--; |
| 341 | } |
| 342 | }; |
| 343 | |
| 344 | // Resolve the default policy once; neither success nor failure is retried |
| 345 | const _getDefaultTrustedTypesPolicy = function () { |
no test coverage detected