Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/org/jruby/RubyProc.java
Original file line number Diff line number Diff line change
@@ -176,6 +176,9 @@ private void setup(Block procBlock) {
oldBinding.getLine());
block = new Block(procBlock.getBody(), newBinding);

// Mark as escaped, so non-local flow errors immediately
block.escape();

// modify the block with a new backref/lastline-grabbing scope
StaticScope oldScope = block.getBody().getStaticScope();
StaticScope newScope = oldScope.duplicate();

0 comments on commit 0697344

Please sign in to comment.