Skip to content

fix: stash hash assignment with numeric RHS#736

Merged
fglock merged 1 commit into
masterfrom
fix/stash-entry-scalar-assign
May 15, 2026
Merged

fix: stash hash assignment with numeric RHS#736
fglock merged 1 commit into
masterfrom
fix/stash-entry-scalar-assign

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented May 15, 2026

Summary

  • Handle INTEGER, DOUBLE, BOOLEAN, VSTRING, and DUALVAR stash assignments by delegating to RuntimeGlob#set, mirroring GV scalar-slot updates for normal typeglobs.
  • Fixes RuntimeStashEntry throwing typeglob assignment not implemented for 0 when modules use Test::MockObject::fake_module, which assigns ${ stash }{VERSION} ||= -1.

Test plan

  • make
  • ./jcpan -t Finance::Currency::Convert::WebserviceX (formerly failed at t/convert.t; should pass).

Made with Cursor

…dule)

Delegate INTEGER/DOUBLE/etc. RuntimeStashEntry assignments to RuntimeGlob so
patterns like `${"Pkg/"}{VERSION} ||= -1` install into the GV scalar slot
instead of throwing. Unblocks jcpan tests for
Finance::Currency::Convert::WebserviceX.

Generated with [Cursor](https://cursor.com/docs)

Co-Authored-By: Cursor <noreply@cursor.com>

Co-authored-by: Cursor <cursoragent@cursor.com>
@fglock fglock merged commit 9c3f374 into master May 15, 2026
2 checks passed
@fglock fglock deleted the fix/stash-entry-scalar-assign branch May 15, 2026 09:49
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