Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/Ruby.java
Original file line number Diff line number Diff line change
@@ -3228,7 +3228,7 @@ public void tearDown(boolean systemExit) {

while (!atExitBlocks.empty()) {
RubyProc proc = atExitBlocks.pop();
IRubyObject oldExc = context.runtime.getGlobalVariables().get("$!"); // Save $!
// IRubyObject oldExc = context.runtime.getGlobalVariables().get("$!"); // Save $!
try {
proc.call(getCurrentContext(), IRubyObject.NULL_ARRAY);
} catch (RaiseException rj) {
@@ -3244,7 +3244,7 @@ public void tearDown(boolean systemExit) {
}
}
// Reset $! now that rj has been handled
context.runtime.getGlobalVariables().set("$!", oldExc);
// context.runtime.getGlobalVariables().set("$!", oldExc);
}
}

0 comments on commit 5f3ff7c

Please sign in to comment.