Skip to content
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

Protect against null prototypes #70

Merged
merged 2 commits into from Jul 31, 2014
Merged

Protect against null prototypes #70

merged 2 commits into from Jul 31, 2014

Conversation

@geek
Copy link
Member

geek commented Jul 31, 2014

Closes #62

@@ -42,7 +42,7 @@ exports.clone = function (obj, seen) {
}
else {
var proto = Object.getPrototypeOf(obj);
if (proto.isImmutable) {
if (proto === null || proto.isImmutable) {

This comment has been minimized.

Copy link
@arb

arb Jul 31, 2014

Contributor

Do we need a check for undefined as well just in case?

arb added a commit that referenced this pull request Jul 31, 2014
Protect against null prototypes
@arb arb merged commit e98462d into hapijs:master Jul 31, 2014
1 check passed
1 check passed
continuous-integration/travis-ci The Travis CI build passed
Details
@hueniverse hueniverse added the bug label Aug 2, 2014
@hueniverse hueniverse added this to the 2.4.0 milestone Aug 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.