MCPcopy Create free account
hub / github.com/angular/angular / __symbol__

Function __symbol__

packages/zone.js/lib/zone-impl.ts:761–767  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

759
760// __Zone_symbol_prefix can be set globally to override the default zone symbol prefix.
761export function __symbol__(name: string) {
762 const rawPrefix = global['__Zone_symbol_prefix'];
763 // Guard against DOM clobbering: an attacker can set __Zone_symbol_prefix to an HTMLElement
764 // via e.g. <input name="__Zone_symbol_prefix">, so we only trust it if it's actually a string.
765 const symbolPrefix = typeof rawPrefix === 'string' ? rawPrefix : '__zone_symbol__';
766 return symbolPrefix + name;
767}
768
769export function initZone(): ZoneType {
770 const performance: {mark(name: string): void; measure(name: string, label: string): void} =

Callers 7

loadZoneFunction · 0.90
utils.tsFile · 0.90
constructorMethod · 0.90
__load_patchMethod · 0.85
initZoneFunction · 0.85
patchPromiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected