Skip to content

Commit

Permalink
ReadNode cannot fail like a primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Oct 20, 2024
1 parent 5597de9 commit 05c6c76
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,11 +542,7 @@ protected final void doSend(final VirtualFrame frame,
replaceWithSend(frame);
return;
}
try {
popArgumentAndPush(frame, readNode.execute(node, (AbstractPointersObject) receiver, getPointInstVarIndex()));
} catch (final PrimitiveFailed pf) {
replaceWithSend(frame);
}
popArgumentAndPush(frame, readNode.execute(node, (AbstractPointersObject) receiver, getPointInstVarIndex()));
}

private ClassObject getPointClass() {
Expand Down

0 comments on commit 05c6c76

Please sign in to comment.