File tree 1 file changed +13
-6
lines changed
test-app/app/src/main/assets/internal
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 92
92
Array . prototype . slice . call ( arguments , 1 )
93
93
) ;
94
94
} else {
95
- thiz = new ( Function . prototype . bind . apply (
95
+ thiz = new ( Function . prototype . bind . apply (
96
96
Extended ,
97
97
[ null ] . concat ( Array . prototype . slice . call ( arguments , 1 ) )
98
98
) ) ( ) ;
99
99
}
100
100
} else {
101
- thiz = new Extended ( ) ;
101
+ thiz = new Extended ( ) ;
102
102
}
103
103
return thiz ;
104
104
} ;
107
107
var Extended = extend ( thiz ) ;
108
108
thiz . __container__ = true ;
109
109
if ( args && args . length > 0 ) {
110
- thiz = new ( Function . prototype . bind . apply (
111
- Extended ,
112
- [ null ] . concat ( args )
113
- ) ) ( ) ;
110
+ if ( typeof Extended !== "function" ) {
111
+ thiz = Reflect . construct (
112
+ Extended ,
113
+ [ null ] . concat ( args )
114
+ ) ;
115
+ } else {
116
+ thiz = new ( Function . prototype . bind . apply (
117
+ Extended ,
118
+ [ null ] . concat ( args )
119
+ ) ) ( ) ;
120
+ }
114
121
} else {
115
122
thiz = new Extended ( ) ;
116
123
}
You can’t perform that action at this time.
0 commit comments