MithrilJS / ospec

Noiseless testing framework
MIT License
48 stars 13 forks source link

deepEquals can't handle objects with a null prototype #41

Closed pygy closed 2 years ago

pygy commented 2 years ago
o("x", ()=> {
  o(Object.create(null)}.deepEquals(Object.create(null))
})

This ends up at the last line of the deepEquals logic, and fail because neither have a .valueOf() method.

I'm working on a fix.