Skip to content

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