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

makes allow/valid/invalid not accept undefined #734 #737

Merged
merged 2 commits into from
Oct 15, 2015

Conversation

kgraves
Copy link
Contributor

@kgraves kgraves commented Oct 9, 2015

No description provided.

@@ -264,6 +264,11 @@ internals.Any.prototype._allow = function () {

internals.Any.prototype.allow = function () {

var keys = Object.keys(arguments);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The iteration is already done in _allow, the assertion should be done there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing this.

@Marsup
Copy link
Collaborator

Marsup commented Oct 12, 2015

There's no need to tell it each time.

@kgraves
Copy link
Contributor Author

kgraves commented Oct 12, 2015

Haha I'm sorry about that. I'm probably spamming everyone's inboxes. I'm used to a system where you have to 'close' every issue before you can get something merged.

@kgraves
Copy link
Contributor Author

kgraves commented Oct 12, 2015

Weird, it looks as though lab is not installed...
Does this happen normally? Is there anyway that I can kick off another build?

@Marsup Marsup added the bug Bug or defect label Oct 15, 2015
@Marsup Marsup self-assigned this Oct 15, 2015
@Marsup Marsup added this to the 6.9.1 milestone Oct 15, 2015
Marsup added a commit that referenced this pull request Oct 15, 2015
makes allow/valid/invalid not accept undefined #734
@Marsup Marsup merged commit 1e87865 into hapijs:master Oct 15, 2015
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants