Skip to content

Commit

Permalink
Fat-finger. SClass needs to pass in block var
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Jan 24, 2015
1 parent 0aef21d commit 6a608c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ir/IRBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ public Operand buildSClass(SClassNode sclassNode) {
Variable sClassVar = addResultInstr(new DefineMetaClassInstr(createTemporaryVariable(), receiver, body));

// sclass bodies inherit the block of their containing method
Variable processBodyResult = addResultInstr(new ProcessModuleBodyInstr(createTemporaryVariable(), sClassVar, NullBlock.INSTANCE));
Variable processBodyResult = addResultInstr(new ProcessModuleBodyInstr(createTemporaryVariable(), sClassVar, scope.getYieldClosureVariable()));
newIRBuilder(manager, body).buildModuleOrClassBody(sclassNode.getBodyNode(), sclassNode.getPosition().getLine());
return processBodyResult;
}
Expand Down

1 comment on commit 6a608c2

@nirvdrum
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was one hell of a typo :-)

Please sign in to comment.