Fix a case of endless recursion
This commit is contained in:
committed by
Любомир Маринов
parent
7a57dcc08a
commit
91487ffc94
@@ -43,9 +43,12 @@ class RouteRegistry {
|
||||
return !a;
|
||||
}
|
||||
|
||||
const aKeys = Object.keys(a);
|
||||
const bKeys = Object.keys(b);
|
||||
|
||||
return (
|
||||
Object.keys(a).every(key => a[key] === b[key])
|
||||
&& /* symmetric */ this.areRoutesEqual(b, a));
|
||||
aKeys.length === bKeys.length /* symmetric */
|
||||
&& aKeys.every(key => a[key] === b[key]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user