0
0

🥅 don't store program tree on parse error

This commit is contained in:
DrMaxNix 2022-09-08 17:48:28 +02:00
parent 376016c8a6
commit f76fb276b7

View File

@ -87,14 +87,15 @@ class Juicescript {
// do parsing
let program_tree = parser.parse();
// store program tree
this.program_tree = program_tree;
// stop here if unsuccessful
if(parser.error_count > 0) return false;
// RETURN SUCCESS //
// FINISH UP //
// store program tree
this.program_tree = program_tree;
// return success
return true;
}