From 1727fe24fbd5546c68ac6f6c296b3407b82403fb Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Wed, 27 Mar 2019 14:28:14 +0100 Subject: [PATCH] refactor(ivy): name anonymous wrapper function (#29543) This simple change helps with debugging / perf investigations as we can see function names on a call stack. PR Close #29543 --- packages/core/src/render3/features/ng_onchanges_feature.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/render3/features/ng_onchanges_feature.ts b/packages/core/src/render3/features/ng_onchanges_feature.ts index 660c12adf9..4e53f979af 100644 --- a/packages/core/src/render3/features/ng_onchanges_feature.ts +++ b/packages/core/src/render3/features/ng_onchanges_feature.ts @@ -54,7 +54,7 @@ function NgOnChangesFeatureImpl(definition: DirectiveDef): void { } function wrapOnChanges() { - return function(this: OnChanges) { + return function wrapOnChangesHook_inPreviousChangesStorage(this: OnChanges) { const simpleChangesStore = getSimpleChangesStore(this); const current = simpleChangesStore && simpleChangesStore.current;