Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix exit. (Oops again.)
  • Loading branch information
jnthn committed May 15, 2009
1 parent 6ac1eaf commit 1f14582
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion perl6.pir
Expand Up @@ -213,6 +213,7 @@ and report exceptions.
.local pmc exception, bt, it, cur_block, anno
.get_results (exception)
$I0 = exception['severity']
if $I0 == .EXCEPT_EXIT goto exit
if $I0 != .EXCEPT_WARNING goto not_warning
say exception
$P0 = exception["resume"]
Expand Down Expand Up @@ -261,7 +262,7 @@ and report exceptions.
if cur_info != "" goto got_cur_info
cur_info = 'format_location'(cur_block)
got_cur_info:

cur_sub = cur_block['sub']
if null cur_sub goto it_loop
$P0 = getprop '$!real_self', cur_sub
Expand Down Expand Up @@ -304,6 +305,10 @@ and report exceptions.
done:

exit 1

exit:
pop_eh
exit 0
.end
.sub 'format_location'
.param pmc cur_block
Expand Down

0 comments on commit 1f14582

Please sign in to comment.