Skip to content

Conversation

@Earlopain
Copy link
Contributor

@Earlopain Earlopain commented Nov 6, 2025

@Earlopain Earlopain force-pushed the end-block-exit branch 2 times, most recently from 089fcda to 6eb14b3 Compare November 6, 2025 09:30
case PM_CONTEXT_SCLASS_ENSURE:
case PM_CONTEXT_SCLASS_RESCUE:
// https://bugs.ruby-lang.org/issues/20409
if (context_node->context == PM_CONTEXT_POSTEXE) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slight preference here for this to be a fallthrough instead of checking again the type here, as in:

case PM_CONTEXT_POSTEXE:
  if (...) { return; }
  if (...) { return; }
PRISM_FALLTHROUGH
case ...:
  assert(...);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants