node-deep-equal
node-deep-equal copied to clipboard
fixed prototype comparison
also added RegExp comparison and some tests
@vruivo I found a better alternative here: https://github.com/zubuzon/kewlr. Seems to support this
@vruivo if you can resurrect this repository and check the "allow edits" box, we can get this in.
Added a variant of this RegExp fix, and the tests, in b8c179c5aa91c8a2f71f053e2d9e2d477780250e.
I believe b8c179c and 43b1eef (and probably a few others) have covered this,
@vruivo if you can check "allow edits" i can update the PR and make sure it's properly merged :-)
@ljharb looking at this, it does indeed seem to be covered. What is not covered is the possibility of adding additional keys to the regular expression.
const a = /abc/gi
const b = /abc/gi
b.foo = true
deepEqual(a, b)
// Passes even though it should not
Resolved in https://github.com/inspect-js/node-deep-equal/commit/1eac46b69c7b499cecb7e3b555b6e260de2043fd