Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix .resume on MoarVM (and hopefully JVM).
  • Loading branch information
jnthn committed Jun 17, 2014
1 parent 87333c9 commit 72b1705
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/Exception.pm
Expand Up @@ -39,13 +39,19 @@ my class Exception {
}

method resume() {
#?if parrot
my Mu $resume := nqp::atkey($!ex, 'resume');
if $resume {
$resume();
}
else {
die "Exception is not resumable";
}
#?endif
#?if !parrot
nqp::resume($!ex);
True
#?endif
}

method die(Exception:D:) { self.throw }
Expand Down

0 comments on commit 72b1705

Please sign in to comment.