perl5
perl5 copied to clipboard
[doc] builtin should document the behaviour of `weaken` and `unweaken` on non-references
Where builtin
Description
builtin should document what weaken
and unweaken
do when called on non-references.
(Pretty sure the answer is that they're a no-op.)
They both croak for defined non-references.
They both croak for defined non-references.
Please review https://github.com/Perl/perl5/pull/19965 for tests and documentation.