File tree 2 files changed +3
-1
lines changed 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ class MicroPythonBoard {
189
189
}
190
190
191
191
async execfile ( filePath , data_consumer ) {
192
+ data_consumer = data_consumer || function ( ) { }
192
193
if ( filePath ) {
193
194
const content = fs . readFileSync ( path . resolve ( filePath ) )
194
195
await this . enter_raw_repl ( )
@@ -302,6 +303,7 @@ class MicroPythonBoard {
302
303
}
303
304
304
305
async fs_save ( content , dest , data_consumer ) {
306
+ data_consumer = data_consumer || function ( ) { }
305
307
if ( content && dest ) {
306
308
content = fixLineBreak ( content )
307
309
await this . enter_raw_repl ( )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " micropython.js" ,
3
- "version" : " 1.3.0 " ,
3
+ "version" : " 1.3.1 " ,
4
4
"description" : " Interpretation of pyboard.py in javascript" ,
5
5
"main" : " micropython.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments