Remove variable branch after function is finished running
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-06-09 12:37:19 +02:00
parent 471632c6e4
commit 9241273e7c

View File

@@ -206,6 +206,8 @@ shared_ptr<EvalValue> Evaluator::EvaluateFunctionCallExpression(BoundExpression*
}
this->_evaluationScope->OuterScope();
this->EvaluateBlockStatement(function->GetInnerBlock().get());
delete this->_evaluationScope;
this->_evaluationScope = originalScope;
this->_hasReturned = false;
auto r = this -> _returnValue;