File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4611,7 +4611,8 @@ var ՐՏ_modules = {};
4611
4611
dropDecorators : [ ] ,
4612
4612
dropImports : [ ] ,
4613
4613
dropDocstrings : false ,
4614
- classes : null
4614
+ classes : null ,
4615
+ readfile : require ( "fs" ) . readFileSync
4615
4616
} ) ;
4616
4617
module_id = options . module_id ;
4617
4618
import_dirs = options . import_dirs . slice ( 0 ) ;
@@ -5180,7 +5181,7 @@ var ՐՏ_modules = {};
5180
5181
contents = parse ( src_code , {
5181
5182
filename : filename ,
5182
5183
toplevel : null ,
5183
- readfile : options . readfile || require ( "fs" ) . readFileSync ,
5184
+ readfile : options . readfile ,
5184
5185
basedir : options . basedir ,
5185
5186
libdir : options . libdir ,
5186
5187
module_id : key ,
Original file line number Diff line number Diff line change @@ -249,7 +249,8 @@ def parse($TEXT, options):
249
249
dropDecorators: [], # Decorators to omit from compilation
250
250
dropImports: [], # Imports to omit from compilation
251
251
dropDocstrings: False, # If true, omit docstrings from compilation
252
- classes: None # Map of class names to ast.Class that are available in the global namespace (used by the REPL)
252
+ classes: None, # Map of class names to ast.Class that are available in the global namespace (used by the REPL)
253
+ readfile: require('fs').readFileSync, # File reader
253
254
})
254
255
module_id = options.module_id
255
256
@@ -787,7 +788,7 @@ def parse($TEXT, options):
787
788
contents = parse(src_code, {
788
789
filename: filename,
789
790
toplevel: None,
790
- readfile: options.readfile or require('fs').readFileSync ,
791
+ readfile: options.readfile,
791
792
basedir: options.basedir,
792
793
libdir: options.libdir,
793
794
module_id: key,
You can’t perform that action at this time.
0 commit comments