diff --git a/lib/zone.ts b/lib/zone.ts index b2ba1ce79..9f2d12b00 100644 --- a/lib/zone.ts +++ b/lib/zone.ts @@ -492,6 +492,9 @@ type AmbientZone = Zone; type AmbientZoneDelegate = ZoneDelegate; const Zone: ZoneType = (function(global: any) { + if (global.Zone) { + throw new Error('Zone already loaded.'); + } class Zone implements AmbientZone { static __symbol__: (name: string) => string = __symbol__;