Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prevent mainline Routines from eating return exceptions
  • Loading branch information
sorear committed Oct 26, 2011
1 parent 4c49318 commit 3c4b14d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NieczaGrammar.pm6
Expand Up @@ -38,6 +38,7 @@ grammar P6 is STD::P6 {
name => "mainline",
run_once => !$*settingref || ?$*niecza_outer_frame ||
$*settingref.run_once);
$*CURLEX<!sub>.set_return_pass;
$*CURLEX{'!sub'}.add_my_name('$_') if !$*settingref;
$*CURLEX{'!sub'}.set_signature(::GLOBAL::Sig.simple());
$*unit.set_mainline($*CURLEX<!sub>);
Expand Down

0 comments on commit 3c4b14d

Please sign in to comment.