question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`t.deepEqual` seems to ignore symbol key properties

See original GitHub issue

Description

t.deepEqual is affected by upstream lodash issue. It means that

t.deepEqual({[Symbol()]: undefined}, {})
// true

Relevant Links

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jdaltoncommented, Jan 10, 2017

Ah yep, will do. Look for it some time on the 9th.

Updated lodash.isequal to v4.5.0.

0reactions
mightyiamcommented, Jan 8, 2017

There has been a release of v4.17.4 but not of lodash.isequal, which is what we use. @jdalton, will you please publish that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

isEqual seems to ignore symbol key properties · Issue #2840
I'm aware of symbols. It appears you're blanket posting to a bunch of projects. You should be aware that getting symbols isn't cheap...
Read more >
How to determine equality for two JavaScript objects?
For simple objects it probably doesn't matter much, but in reality it truly depends on your specific situation. A correct solution may be...
Read more >
Symbol - JavaScript - MDN Web Docs
Chrome Edge Symbol Full support. Chrome38. Toggle history Full support. Edge12. footnote... @@toPrimitive Full support. Chrome47. Toggle history Full support. Edge15. Toggle... Symbol() constructor Full support....
Read more >
Expect / Should - Chai
When the target is a non-function object, .empty asserts that the target doesn't have any own enumerable properties. Properties with Symbol-based keys are ......
Read more >
Attributes of object properties in JavaScript
Each property associates a key with attributes (think fields in a record). ... If it is false , then those operations ignore the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found