File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -2969,10 +2969,9 @@ const EasyCoder_Core = {
2969
2969
} catch ( err ) {
2970
2970
program . runtimeError ( program [ program . pc ] . lino , `Can't parse '${ propertyContent } ': ${ err . message } ` ) ;
2971
2971
}
2972
- try {
2973
- content = content [ property ] ;
2974
- } catch ( err ) {
2975
- program . runtimeError ( program [ program . pc ] . lino , `Property '${ property } ' does not exist` ) ;
2972
+ content = content [ property ] ;
2973
+ if ( content == undefined ) {
2974
+ content = `` ;
2976
2975
}
2977
2976
}
2978
2977
}
Original file line number Diff line number Diff line change @@ -2969,10 +2969,9 @@ const EasyCoder_Core = {
2969
2969
} catch ( err ) {
2970
2970
program . runtimeError ( program [ program . pc ] . lino , `Can't parse '${ propertyContent } ': ${ err . message } ` ) ;
2971
2971
}
2972
- try {
2973
- content = content [ property ] ;
2974
- } catch ( err ) {
2975
- program . runtimeError ( program [ program . pc ] . lino , `Property '${ property } ' does not exist` ) ;
2972
+ content = content [ property ] ;
2973
+ if ( content == undefined ) {
2974
+ content = `` ;
2976
2975
}
2977
2976
}
2978
2977
}
You can’t perform that action at this time.
0 commit comments