Skip to content

Commit c912856

Browse files
committed
Fix caml_obj after review
1 parent e06248a commit c912856

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

jscomp/runtime/caml_obj.res

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ let rec equal = (a: Obj.t, b: Obj.t): bool =>
327327
let a: {..} = Obj.magic(a)
328328
let b: {..} = Obj.magic(b)
329329
if %raw(`b instanceof Error`) && a["message"] === b["message"] {
330-
equal(a["clause"], b["clause"])
330+
equal(a["cause"], b["cause"])
331331
} else {
332332
false
333333
}

lib/es6/caml_obj.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ function equal(_a, _b) {
320320
if (!((b instanceof Error) && a.message === b.message)) {
321321
return false;
322322
}
323-
_b = b.clause;
324-
_a = a.clause;
323+
_b = b.cause;
324+
_a = a.cause;
325325
continue;
326326
};
327327
}

lib/js/caml_obj.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ function equal(_a, _b) {
320320
if (!((b instanceof Error) && a.message === b.message)) {
321321
return false;
322322
}
323-
_b = b.clause;
324-
_a = a.clause;
323+
_b = b.cause;
324+
_a = a.cause;
325325
continue;
326326
};
327327
}

0 commit comments

Comments
 (0)