effect 3.16.10 → 3.16.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6003,6 +6003,9 @@ const go = (ast, path) => {
6003
6003
  const elements = ast.elements.map((element, i) => go(element.type, path.concat(i)));
6004
6004
  const rest = ast.rest.map(annotatedAST => go(annotatedAST.type, path));
6005
6005
  return Equivalence.make((a, b) => {
6006
+ if (!Array.isArray(a) || !Array.isArray(b)) {
6007
+ return false;
6008
+ }
6006
6009
  const len = a.length;
6007
6010
  if (len !== b.length) {
6008
6011
  return false;
@@ -6047,6 +6050,9 @@ const go = (ast, path) => {
6047
6050
  const propertySignatures = ast.propertySignatures.map(ps => go(ps.type, path.concat(ps.name)));
6048
6051
  const indexSignatures = ast.indexSignatures.map(is => go(is.type, path));
6049
6052
  return Equivalence.make((a, b) => {
6053
+ if (!Predicate.isRecord(a) || !Predicate.isRecord(b)) {
6054
+ return false;
6055
+ }
6050
6056
  const aStringKeys = Object.keys(a);
6051
6057
  const aSymbolKeys = Object.getOwnPropertySymbols(a);
6052
6058
  // ---------------------------------------------