File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -2798,14 +2798,6 @@ export class Compiler extends DiagnosticEmitter {
27982798 // Remember that this flow returns
27992799 flow . set ( FlowFlags . RETURNS | FlowFlags . TERMINATES ) ;
28002800
2801- // TODO: implement interop so we can return function references in exported functions
2802- var returnSignature = returnType . signatureReference ;
2803- if ( returnSignature !== null && flow . parentFunction . is ( CommonFlags . EXPORT ) ) {
2804- var returnValueLocalIndex = flow . getTempLocal ( returnType ) . index ;
2805- var nativeReturnType = returnType . toNativeType ( ) ;
2806- expr = this . makeAbort ( null , statement ) ; // TODO: Use unimplemented here instead, since we know at compile time this will fail
2807- }
2808-
28092801 // If the last statement anyway, make it the block's return value
28102802 if ( isLastInBody && expr != 0 && returnType != Type . void ) {
28112803 if ( ! stmts . length ) return expr ;
@@ -6949,9 +6941,6 @@ export class Compiler extends DiagnosticEmitter {
69496941 // cannot call an instance method without a `this` argument (TODO: `.call`?)
69506942 var thisType = signature . thisType ;
69516943 if ( hasThis != ( thisType != null ) ) {
6952- console . log ( "signature " + signature )
6953- console . log ( "hasThis " + hasThis )
6954- assert ( false ) ;
69556944 this . error (
69566945 DiagnosticCode . The_this_types_of_each_signature_are_incompatible ,
69576946 reportNode . range
You can’t perform that action at this time.
0 commit comments