Remove variable branch after function is finished running
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2019-06-09 12:37:19 +02:00
parent 471632c6e4
commit 9241273e7c
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 2 additions and 0 deletions

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;