mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 15:04:43 +02:00
Check for identity of functions in deepEqual
This commit is contained in:
parent
71794b1388
commit
62d48cf9ed
@ -209,7 +209,7 @@ assert.deepEqual._compare = (function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isObjectEquatable(value) {
|
function isObjectEquatable(value) {
|
||||||
return typeof value === 'object';
|
return typeof value === 'object' || typeof value === 'function';
|
||||||
}
|
}
|
||||||
|
|
||||||
function compareObjectEquality(a, b, cache) {
|
function compareObjectEquality(a, b, cache) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user