@@ -79,18 +79,18 @@ export function fnToString(fn: IInjectable) {
79
79
80
80
let stringifyPatternFn : ( val : any ) => string = null ;
81
81
let stringifyPattern = function ( value : any ) {
82
- let isTransitionRejectionPromise = Rejection . isTransitionRejectionPromise ;
82
+ let isRejection = Rejection . isTransitionRejectionPromise ;
83
83
84
84
stringifyPatternFn = < any > stringifyPatternFn || pattern ( [
85
- [ not ( isDefined ) , val ( "undefined" ) ] ,
86
- [ isNull , val ( "null" ) ] ,
87
- [ isPromise , val ( "[Promise]" ) ] ,
88
- [ isTransitionRejectionPromise , ( x : any ) => x . _transitionRejection . toString ( ) ] ,
89
- [ is ( Rejection ) , invoke ( "toString" ) ] ,
90
- [ is ( Transition ) , invoke ( "toString" ) ] ,
91
- [ is ( Resolvable ) , invoke ( "toString" ) ] ,
92
- [ isInjectable , functionToString ] ,
93
- [ val ( true ) , identity ]
85
+ [ not ( isDefined ) , val ( "undefined" ) ] ,
86
+ [ isNull , val ( "null" ) ] ,
87
+ [ isPromise , val ( "[Promise]" ) ] ,
88
+ [ isRejection , ( x : any ) => x . _transitionRejection . toString ( ) ] ,
89
+ [ is ( Rejection ) , invoke ( "toString" ) ] ,
90
+ [ is ( Transition ) , invoke ( "toString" ) ] ,
91
+ [ is ( Resolvable ) , invoke ( "toString" ) ] ,
92
+ [ isInjectable , functionToString ] ,
93
+ [ val ( true ) , identity ]
94
94
] ) ;
95
95
96
96
return stringifyPatternFn ( value ) ;
0 commit comments