Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some failures to catch return outside routine.
We actually ended up returning from the first thing we found down the call stack that could be returned from, which led to some rather odd behaviors. RT #123732 was a great example; this: for ^5 { .say; NEXT { return } } Ended up with the return binding to the run_phasers method that runs the NEXT phasers. This also makes return a tad cheaper, and will let us make return a multi sub too, for further performance win. But this patch just corrects the semantics.
- Loading branch information
Showing
2 changed files
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters