File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33const {
4+ ArrayPrototypePush,
5+ ArrayPrototypeSlice,
46 JSONStringify,
57} = primordials ;
68
@@ -22,17 +24,18 @@ const scriptFiles = [
2224] ;
2325let script = '' ;
2426
25- scriptFiles . forEach ( ( s ) => {
27+ for ( const s of scriptFiles ) {
2628 script += internalBinding ( 'natives' ) [ s ] + '\n' ;
27- } ) ;
29+ }
2830
2931const tickArguments = [ ] ;
3032if ( process . platform === 'darwin' ) {
31- tickArguments . push ( '--mac' ) ;
33+ ArrayPrototypePush ( tickArguments , '--mac' ) ;
3234} else if ( process . platform === 'win32' ) {
33- tickArguments . push ( '--windows' ) ;
35+ ArrayPrototypePush ( tickArguments , '--windows' ) ;
3436}
35- tickArguments . push . apply ( tickArguments , process . argv . slice ( 1 ) ) ;
37+ ArrayPrototypePush ( tickArguments ,
38+ ...ArrayPrototypeSlice ( process . argv , 1 ) ) ;
3639script = `(function(module, require) {
3740 arguments = ${ JSONStringify ( tickArguments ) } ;
3841 function write (s) { process.stdout.write(s) }
You can’t perform that action at this time.
0 commit comments