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
This commit is contained in:
Pawel Kozlowski 2019-03-27 14:28:14 +01:00 committed by Miško Hevery
parent 4eb6b02f08
commit 1727fe24fb
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ function NgOnChangesFeatureImpl<T>(definition: DirectiveDef<T>): void {
}
function wrapOnChanges() {
return function(this: OnChanges) {
return function wrapOnChangesHook_inPreviousChangesStorage(this: OnChanges) {
const simpleChangesStore = getSimpleChangesStore(this);
const current = simpleChangesStore && simpleChangesStore.current;