Can confirm this is still current behaviour with Rakudo 2019. I have came
across exactly the same issue and found this ticket. I've noticed, If I change
the example to catch exceptions. It then runs:
sub start-element($, $elem, $attr)
{
say "open $elem".indent($depth * 4);
# New Ticket Created by Vladimir Marek
# Please include the string: [perl #131666]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=131666 >
I took the NativeCall sample from here:
https://perl6advent.wordpress.com/2015/12/21/d