Skip to content

Commit

Permalink
END should fire even if Ruby has exception in eval
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Oct 22, 2014

Unverified

The committer email address is not verified.
1 parent 0b95ac1 commit 736fb94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -102,8 +102,8 @@ public static IRubyObject interpretCommonEval(Ruby runtime, String file, int lin

runBeginEndBlocks(evalScript.getBeginBlocks(), context, self, ss, null); // FIXME: No temp vars yet right?
rv = evalScript.call(context, self, evalScript.getStaticScope().getModule(), s, block, backtraceName);
runBeginEndBlocks(evalScript.getEndBlocks(), context, self, ss, null); // FIXME: No temp vars right?
} finally {
runBeginEndBlocks(evalScript.getEndBlocks(), context, self, ss, null); // FIXME: No temp vars right?
s.clearEvalType();
context.popScope();
}

0 comments on commit 736fb94

Please sign in to comment.