We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18fd34 commit 13e8fa5Copy full SHA for 13e8fa5
jscomp/runtime/caml_obj.ml
@@ -185,7 +185,6 @@ let rec caml_compare (a : Obj.t) (b : Obj.t) : int =
185
| false, true -> 1
186
| false, false ->
187
if a_type = "boolean"
188
- || a_type = "undefined"
189
then (* TODO: refine semantics when comparing with [null] *)
190
unsafe_js_compare a b
191
else if a_type = "function" || b_type = "function"
lib/js/caml_obj.js
@@ -90,7 +90,7 @@ function caml_compare(_a, _b) {
90
}
91
} else if (is_b_number) {
92
return 1;
93
- } else if (a_type === "boolean" || a_type === "undefined") {
+ } else if (a_type === "boolean") {
94
var x = a;
95
var y = b;
96
if (x === y) {
0 commit comments