@@ -72,6 +72,13 @@ var __extends = (this && this.__extends) || (function () {
72
72
d . prototype = b === null ? Object . create ( b ) : ( __ . prototype = b . prototype , new __ ( ) ) ;
73
73
} ;
74
74
} )();
75
+ var __spreadArrays = (this && this . __spreadArrays ) || function ( ) {
76
+ for ( var s = 0 , i = 0 , il = arguments . length ; i < il ; i ++ ) s += arguments [ i ] . length ;
77
+ for ( var r = Array ( s ) , k = 0 , i = 0 ; i < il ; i ++ )
78
+ for ( var a = arguments [ i ] , j = 0 , jl = a . length ; j < jl ; j ++ , k ++ )
79
+ r [ k ] = a [ j ] ;
80
+ return r ;
81
+ } ;
75
82
var _a, _b, _c, _d, _e, _f, _g;
76
83
function foo(x, y) {
77
84
var z = [ ] ;
@@ -84,23 +91,23 @@ var z;
84
91
var obj ;
85
92
var xa ;
86
93
foo ( 1 , 2 , "abc ") ;
87
- foo . apply ( void 0 , [ 1 , 2 ] . concat ( a ) ) ;
88
- foo . apply ( void 0 , [ 1 , 2 ] . concat ( a , [ "abc "] ) ) ;
94
+ foo . apply ( void 0 , __spreadArrays ( [ 1 , 2 ] , a ) ) ;
95
+ foo . apply ( void 0 , __spreadArrays ( [ 1 , 2 ] , a , [ "abc "] ) ) ;
89
96
obj . foo ( 1 , 2 , "abc ") ;
90
- obj . foo . apply ( obj , [ 1 , 2 ] . concat ( a ) ) ;
91
- obj . foo . apply ( obj , [ 1 , 2 ] . concat ( a , [ "abc "] ) ) ;
92
- obj . foo . apply ( obj , [ 1 , 2 ] . concat ( a ) ) . foo ( 1 , 2 , "abc ") ;
93
- ( _a = obj . foo . apply ( obj , [ 1 , 2 ] . concat ( a ) ) ) . foo . apply ( _a , [ 1 , 2 ] . concat ( a ) ) ;
94
- ( _b = obj . foo . apply ( obj , [ 1 , 2 ] . concat ( a ) ) ) . foo . apply ( _b , [ 1 , 2 ] . concat ( a , [ "abc" ] ) ) ;
97
+ obj . foo . apply ( obj , __spreadArrays ( [ 1 , 2 ] , a ) ) ;
98
+ obj . foo . apply ( obj , __spreadArrays ( [ 1 , 2 ] , a , [ "abc "] ) ) ;
99
+ obj . foo . apply ( obj , __spreadArrays ( [ 1 , 2 ] , a ) ) . foo ( 1 , 2 , "abc ") ;
100
+ ( _a = obj . foo . apply ( obj , __spreadArrays ( [ 1 , 2 ] , a ) ) ) . foo . apply ( _a , __spreadArrays ( [ 1 , 2 ] , a ) ) ;
101
+ ( _b = obj . foo . apply ( obj , __spreadArrays ( [ 1 , 2 ] , a ) ) ) . foo . apply ( _b , __spreadArrays ( [ 1 , 2 ] , a , [ "abc "] ) ) ;
95
102
( obj . foo ) ( 1 , 2 , "abc ") ;
96
- obj . foo . apply ( obj , [ 1 , 2 ] . concat ( a ) ) ;
97
- obj . foo . apply ( obj , [ 1 , 2 ] . concat ( a , [ "abc" ] ) ) ;
98
- ( obj . foo . apply ( obj , [ 1 , 2 ] . concat ( a ) ) . foo ) ( 1 , 2 , "abc" ) ;
99
- ( _c = obj . foo . apply ( obj , [ 1 , 2 ] . concat ( a ) ) ) . foo . apply ( _c , [ 1 , 2 ] . concat ( a ) ) ;
100
- ( _d = obj . foo . apply ( obj , [ 1 , 2 ] . concat ( a ) ) ) . foo . apply ( _d , [ 1 , 2 ] . concat ( a , [ "abc" ] ) ) ;
103
+ obj . foo . apply ( obj , __spreadArrays ( [ 1 , 2 ] , a ) ) ;
104
+ obj . foo . apply ( obj , __spreadArrays ( [ 1 , 2 ] , a , [ "abc "] ) ) ;
105
+ ( obj . foo . apply ( obj , __spreadArrays ( [ 1 , 2 ] , a ) ) . foo ) ( 1 , 2 , "abc ") ;
106
+ ( _c = obj . foo . apply ( obj , __spreadArrays ( [ 1 , 2 ] , a ) ) ) . foo . apply ( _c , __spreadArrays ( [ 1 , 2 ] , a ) ) ;
107
+ ( _d = obj . foo . apply ( obj , __spreadArrays ( [ 1 , 2 ] , a ) ) ) . foo . apply ( _d , __spreadArrays ( [ 1 , 2 ] , a , [ "abc "] ) ) ;
101
108
xa [ 1 ] . foo ( 1 , 2 , "abc ") ;
102
- ( _e = xa [ 1 ] ) . foo . apply ( _e , [ 1 , 2 ] . concat ( a ) ) ;
103
- ( _f = xa [ 1 ] ) . foo . apply ( _f , [ 1 , 2 ] . concat ( a , [ "abc" ] ) ) ;
109
+ ( _e = xa [ 1 ] ) . foo . apply ( _e , __spreadArrays ( [ 1 , 2 ] , a ) ) ;
110
+ ( _f = xa [ 1 ] ) . foo . apply ( _f , __spreadArrays ( [ 1 , 2 ] , a , [ "abc "] ) ) ;
104
111
( _g = xa [ 1 ] ) . foo . apply ( _g , [ 1 , 2 , "abc "] ) ;
105
112
var C = /** @class */ ( function ( ) {
106
113
function C ( x , y ) {
@@ -109,7 +116,7 @@ var C = /** @class */ (function () {
109
116
z [ _i - 2 ] = arguments [ _i ] ;
110
117
}
111
118
this . foo ( x , y ) ;
112
- this . foo . apply ( this , [ x , y ] . concat ( z ) ) ;
119
+ this . foo . apply ( this , __spreadArrays ( [ x , y ] , z ) ) ;
113
120
}
114
121
C . prototype . foo = function ( x , y ) {
115
122
var z = [ ] ;
@@ -123,12 +130,12 @@ var D = /** @class */ (function (_super) {
123
130
__extends ( D , _super ) ;
124
131
function D ( ) {
125
132
var _this = _super . call ( this , 1 , 2 ) || this ;
126
- _this = _super . apply ( this , [ 1 , 2 ] . concat ( a ) ) || this ;
133
+ _this = _super . apply ( this , __spreadArrays ( [ 1 , 2 ] , a ) ) || this ;
127
134
return _this ;
128
135
}
129
136
D . prototype . foo = function ( ) {
130
137
_super . prototype . foo . call ( this , 1 , 2 ) ;
131
- _super . prototype . foo . apply ( this , [ 1 , 2 ] . concat ( a ) ) ;
138
+ _super . prototype . foo . apply ( this , __spreadArrays ( [ 1 , 2 ] , a ) ) ;
132
139
} ;
133
140
return D ;
134
141
} (C));
0 commit comments