@@ -21,12 +21,14 @@ export * from 'bar';
2121//// [file3.ts]
2222
2323export { x , y as z } from 'a' ;
24+ export default function foo ( ) { }
2425export * from 'bar' ;
2526
2627//// [file4.ts]
2728
2829export var x ;
2930export function foo ( ) { }
31+ export default function ( ) { }
3032
3133var z , z1 ;
3234export { z , z1 as z2 } ;
@@ -50,7 +52,7 @@ System.register(['bar'], function(exports_1) {
5052 } ;
5153 function exportStar_1 ( m ) {
5254 for ( var n in m ) {
53- if ( ! exportedNames_1 . hasOwnProperty ( n ) ) exports_1 ( n , m [ n ] ) ;
55+ if ( n !== "default" && ! exportedNames_1 . hasOwnProperty ( n ) ) exports_1 ( n , m [ n ] ) ;
5456 }
5557 }
5658 return {
@@ -72,7 +74,7 @@ System.register(['bar'], function(exports_1) {
7274 } ;
7375 function exportStar_1 ( m ) {
7476 for ( var n in m ) {
75- if ( ! exportedNames_1 . hasOwnProperty ( n ) ) exports_1 ( n , m [ n ] ) ;
77+ if ( n !== "default" && ! exportedNames_1 . hasOwnProperty ( n ) ) exports_1 ( n , m [ n ] ) ;
7678 }
7779 }
7880 return {
@@ -88,13 +90,15 @@ System.register(['bar'], function(exports_1) {
8890} ) ;
8991//// [file3.js]
9092System . register ( [ 'a' , 'bar' ] , function ( exports_1 ) {
93+ function foo ( ) { }
94+ exports_1 ( "default" , foo ) ;
9195 var exportedNames_1 = {
9296 'x' : true ,
9397 'z' : true
9498 } ;
9599 function exportStar_1 ( m ) {
96100 for ( var n in m ) {
97- if ( ! exportedNames_1 . hasOwnProperty ( n ) ) exports_1 ( n , m [ n ] ) ;
101+ if ( n !== "default" && ! exportedNames_1 . hasOwnProperty ( n ) ) exports_1 ( n , m [ n ] ) ;
98102 }
99103 }
100104 return {
@@ -115,6 +119,8 @@ System.register(['a'], function(exports_1) {
115119 var x , z , z1 ;
116120 function foo ( ) { }
117121 exports_1 ( "foo" , foo ) ;
122+ function default_1 ( ) { }
123+ exports_1 ( "default" , default_1 ) ;
118124 return {
119125 setters :[
120126 function ( _a_1 ) {
@@ -133,7 +139,7 @@ System.register(['a'], function(exports_1) {
133139 function foo ( ) { }
134140 function exportStar_1 ( m ) {
135141 for ( var n in m ) {
136- exports_1 ( n , m [ n ] ) ;
142+ if ( n !== "default" ) exports_1 ( n , m [ n ] ) ;
137143 }
138144 }
139145 return {
0 commit comments