mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare/parser] Catch error from function call
This commit is contained in:
@@ -361,6 +361,10 @@ void Parser::parseCustomIdentifier(Expression & leftHandSide, const char * name,
|
||||
return;
|
||||
}
|
||||
Expression parameter = parseCommaSeparatedList();
|
||||
if (m_status != Status::Progress) {
|
||||
return;
|
||||
}
|
||||
assert(!parameter.isUninitialized());
|
||||
if (parameter.numberOfChildren() != 1) {
|
||||
m_status = Status::Error; // Unexpected number of paramters.
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user