From f18d659a432d59f6c19ecb8758722d384dfe71e1 Mon Sep 17 00:00:00 2001 From: Vikram Subramanian Date: Mon, 10 Sep 2018 23:48:50 -0700 Subject: [PATCH] fix(onProperty): user quoted access for __Zone_ignore_on_properties Avoid closure renaming while accessing the global symbol. --- lib/browser/property-descriptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/property-descriptor.ts b/lib/browser/property-descriptor.ts index 848204385..60500d2d7 100644 --- a/lib/browser/property-descriptor.ts +++ b/lib/browser/property-descriptor.ts @@ -272,7 +272,7 @@ export function propertyDescriptorPatch(api: _ZonePrivate, _global: any) { const supportsWebSocket = typeof WebSocket !== 'undefined'; if (canPatchViaPropertyDescriptor()) { - const ignoreProperties: IgnoreProperty[] = _global.__Zone_ignore_on_properties; + const ignoreProperties: IgnoreProperty[] = _global['__Zone_ignore_on_properties']; // for browsers that we can patch the descriptor: Chrome & Firefox if (isBrowser) { const internalWindow: any = window;