Remove variable branch after function is finished running
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
471632c6e4
commit
9241273e7c
|
@ -206,6 +206,8 @@ shared_ptr<EvalValue> Evaluator::EvaluateFunctionCallExpression(BoundExpression*
|
||||||
}
|
}
|
||||||
this->_evaluationScope->OuterScope();
|
this->_evaluationScope->OuterScope();
|
||||||
this->EvaluateBlockStatement(function->GetInnerBlock().get());
|
this->EvaluateBlockStatement(function->GetInnerBlock().get());
|
||||||
|
|
||||||
|
delete this->_evaluationScope;
|
||||||
this->_evaluationScope = originalScope;
|
this->_evaluationScope = originalScope;
|
||||||
this->_hasReturned = false;
|
this->_hasReturned = false;
|
||||||
auto r = this -> _returnValue;
|
auto r = this -> _returnValue;
|
||||||
|
|
Loading…
Reference in New Issue