New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not die when $ctx is non-hash non-blessed ref #18

Merged
merged 1 commit into from Mar 4, 2015

Conversation

Projects
None yet
2 participants
@rjbs
Collaborator

rjbs commented Mar 4, 2015

If you're passed a reference that isn't a hash reference or an object, you should (a) not use UNIVERSAL::can and (b) not barf when $non_obj->can throws an exception.

This fixes #8 and is similar to a commit in #10, but with extra safety and without the rest of the work.

pvande added a commit that referenced this pull request Mar 4, 2015

Merge pull request #18 from rjbs/ctx-ref-safe
do not die when $ctx is non-hash non-blessed ref

@pvande pvande merged commit c093d15 into yanick:master Mar 4, 2015

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