Skip to content

Commit 36a762a

Browse files
committed
[Truffle] Fix call target to use when a proc is turned into a method - fixes last return spec.
1 parent 92c6221 commit 36a762a

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎core/src/main/java/org/jruby/truffle/nodes/core/KernelNodes.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ public RubyProc proc(RubyProc block) {
696696
notDesignedForCompilation();
697697

698698
return new RubyProc(getContext().getCoreLibrary().getProcClass(), RubyProc.Type.PROC,
699-
block.getSharedMethodInfo(), block.getCallTarget(), block.getCallTarget(), block.getDeclarationFrame(),
699+
block.getSharedMethodInfo(), block.getCallTarget(), block.getCallTargetForMethods(), block.getDeclarationFrame(),
700700
block.getSelfCapturedInScope(), block.getBlockCapturedInScope());
701701
}
702702
}

‎spec/truffle/tags/language/return_tags.txt‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)