File tree Expand file tree Collapse file tree
test-app/app/src/main/assets/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9292 Array . prototype . slice . call ( arguments , 1 )
9393 ) ;
9494 } else {
95- thiz = new ( Function . prototype . bind . apply (
95+ thiz = new ( Function . prototype . bind . apply (
9696 Extended ,
9797 [ null ] . concat ( Array . prototype . slice . call ( arguments , 1 ) )
9898 ) ) ( ) ;
9999 }
100100 } else {
101- thiz = new Extended ( ) ;
101+ thiz = new Extended ( ) ;
102102 }
103103 return thiz ;
104104 } ;
107107 var Extended = extend ( thiz ) ;
108108 thiz . __container__ = true ;
109109 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+ }
114121 } else {
115122 thiz = new Extended ( ) ;
116123 }
You can’t perform that action at this time.
0 commit comments