Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #3484. define_method with empty body throws RuntimeError in int…
Browse files Browse the repository at this point in the history
…erpreter
enebo committed Nov 23, 2015
1 parent 2fa04aa commit 074beb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ast/IterNode.java
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ public IterNode(ISourcePosition position, ArgsNode args, Node body, StaticScope
super(position, args != null && args.containsVariableAssignment || body != null && body.containsVariableAssignment);

this.varNode = args;
this.bodyNode = body;
this.bodyNode = body == null ? NilImplicitNode.NIL : body;
this.scope = scope;
}

0 comments on commit 074beb5

Please sign in to comment.