File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 22
22
'use strict' ;
23
23
24
24
const {
25
- ArrayPrototypeConcat ,
25
+ ArrayPrototypePushApply ,
26
26
MathMin,
27
27
Symbol,
28
28
RegExpPrototypeTest,
@@ -66,7 +66,7 @@ function parserOnHeaders(headers, url) {
66
66
// Once we exceeded headers limit - stop collecting them
67
67
if ( this . maxHeaderPairs <= 0 ||
68
68
this . _headers . length < this . maxHeaderPairs ) {
69
- this . _headers = ArrayPrototypeConcat ( this . _headers , headers ) ;
69
+ ArrayPrototypePushApply ( this . _headers , headers ) ;
70
70
}
71
71
this . _url += url ;
72
72
}
Original file line number Diff line number Diff line change 4
4
// message port.
5
5
6
6
const {
7
- ArrayPrototypeConcat ,
7
+ ArrayPrototypePushApply ,
8
8
ArrayPrototypeSplice,
9
9
ObjectDefineProperty,
10
10
PromisePrototypeCatch,
@@ -125,7 +125,7 @@ port.on('message', (message) => {
125
125
loadPreloadModules ( ) ;
126
126
initializeFrozenIntrinsics ( ) ;
127
127
if ( argv !== undefined ) {
128
- process . argv = ArrayPrototypeConcat ( process . argv , argv ) ;
128
+ ArrayPrototypePushApply ( process . argv , argv ) ;
129
129
}
130
130
publicWorker . parentPort = publicPort ;
131
131
publicWorker . workerData = workerData ;
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ const {
32
32
ArrayPrototypeSlice,
33
33
ArrayPrototypeSplice,
34
34
ArrayPrototypeUnshift,
35
+ ArrayPrototypeUnshiftApply,
35
36
Boolean,
36
37
Error,
37
38
JSONParse,
@@ -1225,18 +1226,18 @@ Module._initPaths = function() {
1225
1226
path . resolve ( process . execPath , '..' ) :
1226
1227
path . resolve ( process . execPath , '..' , '..' ) ;
1227
1228
1228
- let paths = [ path . resolve ( prefixDir , 'lib' , 'node' ) ] ;
1229
+ const paths = [ path . resolve ( prefixDir , 'lib' , 'node' ) ] ;
1229
1230
1230
1231
if ( homeDir ) {
1231
1232
ArrayPrototypeUnshift ( paths , path . resolve ( homeDir , '.node_libraries' ) ) ;
1232
1233
ArrayPrototypeUnshift ( paths , path . resolve ( homeDir , '.node_modules' ) ) ;
1233
1234
}
1234
1235
1235
1236
if ( nodePath ) {
1236
- paths = ArrayPrototypeConcat ( ArrayPrototypeFilter (
1237
+ ArrayPrototypeUnshiftApply ( paths , ArrayPrototypeFilter (
1237
1238
StringPrototypeSplit ( nodePath , path . delimiter ) ,
1238
1239
Boolean
1239
- ) , paths ) ;
1240
+ ) ) ;
1240
1241
}
1241
1242
1242
1243
modulePaths = paths ;
You can’t perform that action at this time.
0 commit comments