MCPcopy Index your code
hub / github.com/angular/angular / __symbol__

Function __symbol__

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

Source from the content-addressed store, hash-verified

764
765// __Zone_symbol_prefix can be set globally to override the default zone symbol prefix.
766export 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
774export function initZone(): ZoneType {
775 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…