Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "use more modern FALLBACK instead of .^add_fallback"
This Fallback mechanism seems not reliable in all cases.
Reverting this should make a5496e0 obsolete too.

This reverts commit 20c3ae3.
  • Loading branch information
FROGGS committed May 22, 2015
1 parent e5bc03b commit 3617107
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/core/Failure.pm
Expand Up @@ -37,12 +37,15 @@ my class Failure {
self.exception.message ~ "\n" ~ self.backtrace;
}

Failure.^add_fallback(
-> $, $ { True },
method ($name) {
$!exception.throw;
}
);
method sink() {
$!exception.throw($!backtrace) unless $!handled
}
method FALLBACK(*@_) {
$!exception.throw;
}
}

proto sub fail(|) {*};
Expand Down

0 comments on commit 3617107

Please sign in to comment.