myst-lang / myst

A structured, dynamic, general-purpose language.
http://myst-lang.org
MIT License
118 stars 17 forks source link

Fixes #155. Properly pop scope and `self` overrides when exiting an Invocation #160

Closed faultyserver closed 6 years ago

faultyserver commented 6 years ago

No matter how an Invocation is exited (implicit return, raise, break, or explicit return), Invocation#invoke will now always pop its temporary values from the scope and self stacks of the Interpreter.

The spec added here is taken directly from #155.