@@ -254,7 +254,7 @@ let f t x =
254254 try {var val$ 0 = caml_call2(Stdlib_Hashtbl [6 ], t, x);}
255255 catch(_f_){
256256 var _c_ = caml_wrap_exception(_f_);
257- if (_c_ === Stdlib [8 ]) return - 1 ;
257+ if (Object. is( _c_, Stdlib [8 ]) ) return - 1 ;
258258 throw caml_maybe_attach_backtrace(_c_, 0 );
259259 }
260260 if (val$ 0 && ! val$ 0 [2 ]){
@@ -265,7 +265,8 @@ let f t x =
265265 try {var val = caml_call2(Stdlib_Hashtbl [6 ], t, x$ 0 );}
266266 catch(_e_){
267267 var _a_ = caml_wrap_exception(_e_);
268- if (_a_ != = Stdlib [3 ]) throw caml_maybe_attach_backtrace(_a_, 0 );
268+ if (! Object. is(_a_, Stdlib [3 ]))
269+ throw caml_maybe_attach_backtrace(_a_, 0 );
269270 var _d_ = 0 ;
270271 break a;
271272 }
@@ -500,12 +501,12 @@ let add_substitute =
500501 var lim = caml_ml_string_length(s), k = k$ 2 , stop = new_start;
501502 for (;;){
502503 if (lim < = stop) throw caml_maybe_attach_backtrace(Stdlib [8 ], 1 );
503- if (caml_string_get(s, stop) === opening){
504+ if (Object. is( caml_string_get(s, stop), opening) ){
504505 var i = stop + 1 | 0 , k$ 0 = k + 1 | 0 ;
505506 k = k$ 0 ;
506507 stop = i;
507508 }
508- else if (caml_string_get(s, stop) === closing){
509+ else if (Object. is( caml_string_get(s, stop), closing) ){
509510 if (0 === k) break;
510511 var i$ 0 = stop + 1 | 0 , k$ 1 = k - 1 | 0 ;
511512 k = k$ 1 ;
0 commit comments