Skip to content

Commit 254c148

Browse files
committed
[Truffle] DispatchHeadNodes using doesRespondTo should have RETURN_MISSING.
1 parent b6bcd05 commit 254c148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/jruby/truffle/nodes/core/KernelNodes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,8 +1481,8 @@ public abstract static class RespondToNode extends CoreMethodNode {
14811481
public RespondToNode(RubyContext context, SourceSection sourceSection) {
14821482
super(context, sourceSection);
14831483

1484-
dispatch = new DispatchHeadNode(context, false, Dispatch.MissingBehavior.CALL_METHOD_MISSING);
1485-
dispatchIgnoreVisibility = new DispatchHeadNode(context, true, Dispatch.MissingBehavior.CALL_METHOD_MISSING);
1484+
dispatch = new DispatchHeadNode(context, false, Dispatch.MissingBehavior.RETURN_MISSING);
1485+
dispatchIgnoreVisibility = new DispatchHeadNode(context, true, Dispatch.MissingBehavior.RETURN_MISSING);
14861486

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

0 commit comments

Comments
 (0)