Skip to content
Permalink
Browse files
[Truffle] DispatchHeadNodes using doesRespondTo should have RETURN_MI…
…SSING.
  • Loading branch information
eregon committed Dec 3, 2014
1 parent b6bcd05 commit 254c148b74cc6b96faa8ca159cd24e150fa6c008
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/main/java/org/jruby/truffle/nodes/core/KernelNodes.java
@@ -1481,8 +1481,8 @@ public abstract static class RespondToNode extends CoreMethodNode {
public RespondToNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);

dispatch = new DispatchHeadNode(context, false, Dispatch.MissingBehavior.CALL_METHOD_MISSING);
dispatchIgnoreVisibility = new DispatchHeadNode(context, true, Dispatch.MissingBehavior.CALL_METHOD_MISSING);
dispatch = new DispatchHeadNode(context, false, Dispatch.MissingBehavior.RETURN_MISSING);
dispatchIgnoreVisibility = new DispatchHeadNode(context, true, Dispatch.MissingBehavior.RETURN_MISSING);

if (Options.TRUFFLE_DISPATCH_METAPROGRAMMING_ALWAYS_UNCACHED.load()) {
dispatch.forceUncached();

0 comments on commit 254c148

Please sign in to comment.