Skip to content

Commit

Permalink
Escape stack is cursed.
Browse files Browse the repository at this point in the history
  • Loading branch information
TehFlaminTaco committed Aug 24, 2020
1 parent 421e0ee commit 02cf85f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tokenizer/Tokens/Flow/TFunction.cs
Expand Up @@ -123,9 +123,7 @@ class TFunction : TExpression{
Var o = body.TryParse(subscope);
if(subscope.escape.Count>0){
Escaper esc = subscope.escape.Peek();
if(esc.method == Escape.RETURN){
subscope.escape.Pop();
}
subscope.escape.Clear();
return esc.value;
}
return o;
Expand Down

0 comments on commit 02cf85f

Please sign in to comment.