Skip to content

Commit

Permalink
Revert "Remove apparently unused/undocumented param from MAIN_HELPER"
Browse files Browse the repository at this point in the history
This reverts commit e48e750.

Apparently this *is* being used???
  • Loading branch information
lizmat committed Oct 9, 2018
1 parent e48e750 commit f30b647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Main.pm6
Expand Up @@ -5,10 +5,10 @@
# * Allow exact Perl 6 forms, quoted away from shell
# * Fix remaining XXXX

my sub MAIN_HELPER($IN-as-ARGSFILES) {
my sub MAIN_HELPER($IN-as-ARGSFILES, $retval = 0) {
# Do we have a MAIN at all?
my $m = callframe(1).my<&MAIN>;
return 0 unless $m;
return $retval unless $m;

my %SUB-MAIN-OPTS := %*SUB-MAIN-OPTS // {};
my $no-named-after := nqp::isfalse(%SUB-MAIN-OPTS<named-anywhere>);
Expand Down

0 comments on commit f30b647

Please sign in to comment.