Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
END should fire even if Ruby has exception in eval
  • Loading branch information
enebo committed Oct 22, 2014
1 parent 0b95ac1 commit 736fb94
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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();
}
Expand Down

0 comments on commit 736fb94

Please sign in to comment.