File tree Expand file tree Collapse file tree
packages/core/src/render3/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 */
88
99import { Type } from '../../interface/type' ;
10- import { NG_COMP_DEF } from '../fields ' ;
10+ import { getComponentDef } from '../def_getters ' ;
1111
1212/**
1313 * Used for stringify render output in Ivy.
@@ -45,9 +45,8 @@ export function stringifyForError(value: any): string {
4545 * Important! This function contains a megamorphic read and should only be used for error messages.
4646 */
4747export function debugStringifyTypeForError ( type : Type < any > ) : string {
48- // TODO(pmvald): Do some refactoring so that we can use getComponentDef here without creating
49- // circular deps.
50- let componentDef = ( type as any ) [ NG_COMP_DEF ] || null ;
48+ const componentDef = getComponentDef ( type ) ;
49+
5150 if ( componentDef !== null && componentDef . debugInfo ) {
5251 return stringifyTypeFromDebugInfo ( componentDef . debugInfo ) ;
5352 }
You can’t perform that action at this time.
0 commit comments