Skip to content

Commit

Permalink
Revert deprecation of PERL6_EXCEPTIONS_HANDLER
Browse files Browse the repository at this point in the history
The PERL6_EXCEPTIONS_HANDLER environment variable is actually part of the 6.d
spec, so we cannot remove it. Further the deprecation message went into the same
stream as the supposedly machine readable output, potentially disrupting tools
that this output was meant for.
  • Loading branch information
niner committed Jan 2, 2020
1 parent 6f527ce commit b54d83b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core.c/Exception.pm6
Expand Up @@ -377,10 +377,6 @@ do {
my $e := EXCEPTION($ex);

if %*ENV<PERL6_EXCEPTIONS_HANDLER> -> $handler {
# REMOVE DEPRECATED CODE ON 202011
Rakudo::Deprecations.DEPRECATED: "RAKU_EXCEPTIONS_HANDLER", Nil,
'2020.11', :file("N/A"), :line("N/A"),
:what("PERL6_EXCEPTIONS_HANDLER env var");
my $class := ::("Exceptions::$handler");
unless nqp::istype($class,Failure) {
temp %*ENV<PERL6_EXCEPTIONS_HANDLER> = ""; # prevent looping
Expand Down

0 comments on commit b54d83b

Please sign in to comment.