Skip to content

Commit

Permalink
Fix caml_obj after review
Browse files Browse the repository at this point in the history
  • Loading branch information
DZakh committed Aug 7, 2024
1 parent e06248a commit c912856
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jscomp/runtime/caml_obj.res
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ let rec equal = (a: Obj.t, b: Obj.t): bool =>
let a: {..} = Obj.magic(a)
let b: {..} = Obj.magic(b)
if %raw(`b instanceof Error`) && a["message"] === b["message"] {
equal(a["clause"], b["clause"])
equal(a["cause"], b["cause"])
} else {
false
}
Expand Down
4 changes: 2 additions & 2 deletions lib/es6/caml_obj.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ function equal(_a, _b) {
if (!((b instanceof Error) && a.message === b.message)) {
return false;
}
_b = b.clause;
_a = a.clause;
_b = b.cause;
_a = a.cause;
continue;
};
}
Expand Down
4 changes: 2 additions & 2 deletions lib/js/caml_obj.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ function equal(_a, _b) {
if (!((b instanceof Error) && a.message === b.message)) {
return false;
}
_b = b.clause;
_a = a.clause;
_b = b.cause;
_a = a.cause;
continue;
};
}
Expand Down

0 comments on commit c912856

Please sign in to comment.