Skip to content

Fix Class::Tiny jcpan tests#689

Merged
fglock merged 1 commit intomasterfrom
fix/class-tiny-jcpan
May 8, 2026
Merged

Fix Class::Tiny jcpan tests#689
fglock merged 1 commit intomasterfrom
fix/class-tiny-jcpan

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented May 8, 2026

Summary

  • implement the bundled subs pragma version/declaration behavior that Class::Tiny uses for custom accessors
  • prevent map from flushing mortal blessed return values before the caller captures the result list
  • add focused regressions for use subs predeclarations and map { Class->new } destructor lifetime

Verification

  • make
  • timeout 600 ./jcpan -t Class::Tiny

Generated with Codex

Teach the built-in subs pragma to expose its version and mark predeclared
CODE slots as declared, matching the behavior Class::Tiny relies on for
custom accessors.

Keep map-produced blessed objects alive until the caller captures the
returned list so BUILD/DEMOLISH accounting survives list assignment.

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock fglock merged commit 2f1a640 into master May 8, 2026
2 checks passed
@fglock fglock deleted the fix/class-tiny-jcpan branch May 8, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant