Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 7201d44

Browse files
vikermanmhevery
authored andcommitted
fix(onProperty): user quoted access for __Zone_ignore_on_properties (#1134)
Avoid closure renaming while accessing the global symbol.
1 parent 427705f commit 7201d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/browser/property-descriptor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export function propertyDescriptorPatch(api: _ZonePrivate, _global: any) {
272272

273273
const supportsWebSocket = typeof WebSocket !== 'undefined';
274274
if (canPatchViaPropertyDescriptor()) {
275-
const ignoreProperties: IgnoreProperty[] = _global.__Zone_ignore_on_properties;
275+
const ignoreProperties: IgnoreProperty[] = _global['__Zone_ignore_on_properties'];
276276
// for browsers that we can patch the descriptor: Chrome & Firefox
277277
if (isBrowser) {
278278
const internalWindow: any = window;

0 commit comments

Comments
 (0)