File tree 1 file changed +0
-11
lines changed
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 {
2798
2798
// Remember that this flow returns
2799
2799
flow . set ( FlowFlags . RETURNS | FlowFlags . TERMINATES ) ;
2800
2800
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
-
2809
2801
// If the last statement anyway, make it the block's return value
2810
2802
if ( isLastInBody && expr != 0 && returnType != Type . void ) {
2811
2803
if ( ! stmts . length ) return expr ;
@@ -6949,9 +6941,6 @@ export class Compiler extends DiagnosticEmitter {
6949
6941
// cannot call an instance method without a `this` argument (TODO: `.call`?)
6950
6942
var thisType = signature . thisType ;
6951
6943
if ( hasThis != ( thisType != null ) ) {
6952
- console . log ( "signature " + signature )
6953
- console . log ( "hasThis " + hasThis )
6954
- assert ( false ) ;
6955
6944
this . error (
6956
6945
DiagnosticCode . The_this_types_of_each_signature_are_incompatible ,
6957
6946
reportNode . range
You can’t perform that action at this time.
0 commit comments