We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a83eb0 commit 1eea28dCopy full SHA for 1eea28d
1 file changed
src/main/java/org/jruby/prism/builder/IRBuilderPrism.java
@@ -565,6 +565,7 @@ public void receiveBlockArgs(Node node) {
565
Variable keywords = addResultInstr(new ReceiveKeywordsInstr(temp(), true, true));
566
Variable v = getLocalVariable(symbol("it"), 0);
567
markIt(staticScope);
568
+ ((IRClosure) scope).setArgumentDescriptors(new ArgumentDescriptor[] { new ArgumentDescriptor(ArgumentType.anonreq) });
569
addInstr(new ReceivePreReqdArgInstr(v, keywords, 0));
570
} else if (node instanceof BlockParametersNode params) {
571
// FIXME: Missing locals? Not sure how we handle those but I would have thought with a scope?
0 commit comments