Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] DispatchHeadNodes using doesRespondTo should have RETURN_MI…
…SSING.
  • Loading branch information
eregon committed Dec 3, 2014
1 parent b6bcd05 commit 254c148
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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();
Expand Down

0 comments on commit 254c148

Please sign in to comment.