File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 9
9
const fs = require ( 'fs' ) ;
10
10
const path = require ( 'path' ) ;
11
11
12
- const arguments_ = process [ ' argv' ] . slice ( 2 ) ;
12
+ const arguments_ = process . argv . slice ( 2 ) ;
13
13
const debug = false ;
14
14
15
15
function print ( x ) {
16
- process [ ' stdout' ] . write ( x + '\n' ) ;
16
+ process . stdout . write ( x + '\n' ) ;
17
17
}
18
18
19
19
function printErr ( x ) {
20
- process [ ' stderr' ] . write ( x + '\n' ) ;
20
+ process . stderr . write ( x + '\n' ) ;
21
21
}
22
22
23
23
function read ( filename , binary ) {
24
- filename = path [ ' normalize' ] ( filename ) ;
25
- let ret = fs [ ' readFileSync' ] ( filename ) ;
24
+ filename = path . normalize ( filename ) ;
25
+ let ret = fs . readFileSync ( filename ) ;
26
26
if ( ret && ! binary ) ret = ret . toString ( ) ;
27
27
return ret ;
28
28
}
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ const fs = require('fs');
18
18
const path = require ( 'path' ) ;
19
19
global . vm = require ( 'vm' ) ;
20
20
21
- const arguments_ = process [ ' argv' ] . slice ( 2 ) ;
21
+ const arguments_ = process . argv . slice ( 2 ) ;
22
22
const debug = false ;
23
23
24
24
global . print = function ( x ) {
25
- process [ ' stdout' ] . write ( x + '\n' ) ;
25
+ process . stdout . write ( x + '\n' ) ;
26
26
} ;
27
27
global . printErr = function ( x ) {
28
- process [ ' stderr' ] . write ( x + '\n' ) ;
28
+ process . stderr . write ( x + '\n' ) ;
29
29
} ;
30
30
31
31
global . assert = require ( 'assert' ) ;
You can’t perform that action at this time.
0 commit comments