File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ var extendStatics = function(d, b) {
22
22
} ;
23
23
24
24
export function __extends ( d , b ) {
25
+ if ( typeof b !== "function" && b !== null )
26
+ throw new TypeError ( "Class extends value " + String ( b ) + " is not a constructor or null" ) ;
25
27
extendStatics ( d , b ) ;
26
28
function __ ( ) { this . constructor = d ; }
27
29
d . prototype = b === null ? Object . create ( b ) : ( __ . prototype = b . prototype , new __ ( ) ) ;
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ var __createBinding;
65
65
function ( d , b ) { for ( var p in b ) if ( Object . prototype . hasOwnProperty . call ( b , p ) ) d [ p ] = b [ p ] ; } ;
66
66
67
67
__extends = function ( d , b ) {
68
+ if ( typeof b !== "function" && b !== null )
69
+ throw new TypeError ( "Class extends value " + String ( b ) + " is not a constructor or null" ) ;
68
70
extendStatics ( d , b ) ;
69
71
function __ ( ) { this . constructor = d ; }
70
72
d . prototype = b === null ? Object . create ( b ) : ( __ . prototype = b . prototype , new __ ( ) ) ;
You can’t perform that action at this time.
0 commit comments