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

Enforce arguments constraint reflexively #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jugglinmike
Copy link

My personal preference would be for eql to be more lax (as opposed to less)--considering arguments objects as equivalent to arrays if their elements are deeply equal. Since this project uses Node.js's deepEqual logic, I assume this is not the intention of eql. The important thing is consistency, as a patch like 7c20523 should not have effected downstream libraries.

Commit message:

If an arguments object is not considered eql to an array, then the
inverse should also hold true.

fb55 added a commit to cheeriojs/cheerio that referenced this pull request Feb 25, 2014
As long as Automattic/expect.js#102 isn't resolved, 0.3 causes bugs.
If an `arguments` object is not considered `eql` to an array, then the
inverse should also hold true.
@jugglinmike
Copy link
Author

I've updated the code style to match the the patch that was recently merged into Node core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant