Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,16 @@ public RuntimeScalar set(RuntimeScalar value) {
// TODO: Add "Undefined value assigned to typeglob" warning with proper guards
// to avoid false positives during module loading
return value;
case INTEGER:
case DOUBLE:
case BOOLEAN:
case VSTRING:
case DUALVAR:
// Stash-hash assignment with a numeric or other non-string scalar (e.g.
// `${"HTTP/Response::"}{VERSION} ||= -1` from Test::MockObject::fake_module)
// updates the GV's scalar slot, not subroutine prototype metadata — delegate
// to RuntimeGlob.
return super.set(value);
case STRING:
case BYTE_STRING:
// Assigning a string to a stash entry sets the prototype for that symbol
Expand Down
Loading