File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/transformer/descriptor/method Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import ts from 'typescript' ;
22import { GetTsAutoMockOverloadOptions , TsAutoMockOverloadOptions } from '../../../options/overload' ;
3- import { GetClassDeclarationDescriptor } from '../class/classDeclaration' ;
43import { TypescriptCreator } from '../../helper/creator' ;
54import { MockDefiner } from '../../mockDefiner/mockDefiner' ;
65import { ModuleName } from '../../mockDefiner/modules/moduleName' ;
@@ -60,7 +59,8 @@ function CreateTypeEquality(signatureType: ts.TypeNode | undefined, primaryDecla
6059 signatureType ? ts . createStringLiteral ( signatureType . getText ( ) ) : ts . createVoidZero ( ) ,
6160 ) ;
6261 } else {
63- return ts . createBinary ( identifier , ts . SyntaxKind . InstanceOfKeyword , ts . createIdentifier ( signatureType . getText ( ) ) ) ;
62+ // FIXME: Support `instanceof Class`, falls back to Object for now. The fallback causes undefined behavior!
63+ return ts . createBinary ( identifier , ts . SyntaxKind . InstanceOfKeyword , ts . createIdentifier ( 'Object' ) ) ;
6464 }
6565}
6666
You can’t perform that action at this time.
0 commit comments