@std/assert/equals
considers Object.create(null)
and {}
to be equal
#6334
Labels
bug
Something isn't working
Describe the bug
assertEquals
checks object prototypes. However, it makes certain exceptions to keep existing tests within the repo from failing."node:assert/strict"
,"ava"
, and"uvu"
all make a distinction between null-prototype object and plain objects."node:assert"
and"chai"
don't.Steps to Reproduce
The following assertion passes:
Expected behavior
The assertion fails.
Environment
Not applicable.
The text was updated successfully, but these errors were encountered: