(name: string)
| 764 | |
| 765 | // __Zone_symbol_prefix can be set globally to override the default zone symbol prefix. |
| 766 | export function __symbol__(name: string) { |
| 767 | const rawPrefix = global['__Zone_symbol_prefix']; |
| 768 | // Guard against DOM clobbering: an attacker can set __Zone_symbol_prefix to an HTMLElement |
| 769 | // via e.g. <input name="__Zone_symbol_prefix">, so we only trust it if it's actually a string. |
| 770 | const symbolPrefix = typeof rawPrefix === 'string' ? rawPrefix : '__zone_symbol__'; |
| 771 | return symbolPrefix + name; |
| 772 | } |
| 773 | |
| 774 | export function initZone(): ZoneType { |
| 775 | const performance: {mark(name: string): void; measure(name: string, label: string): void} = |
no outgoing calls
no test coverage detected
searching dependent graphs…