Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix andthen-orelse chaining; make orelse 2.4x faster
Fixes RT#130798: https://rt.perl.org/Ticket/Display.html?id=130798 The OP issue in the ticket is due to `Empty` from andthen messing up positions of args in orelse, making the thunked args shift up and be returned as blocks instead of evaled. Fix by using nqp::p6argvarray op to preserve Empties and then emulating the original +@foo slurpy param. This is also an alternate and better fix for RT#130034: https://rt.perl.org/Ticket/Display.html?id=130034
- Loading branch information
1 parent
6ef2abd
commit 37316f8
Showing
1 changed file
with
24 additions
and
26 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