@@ -257,7 +257,7 @@ let f t x =
257
257
try {var val$ 0 = caml_call2(Stdlib_Hashtbl [6 ], t, x);}
258
258
catch(_f_){
259
259
var _c_ = caml_wrap_exception(_f_);
260
- if (_c_ === Stdlib [8 ]) return - 1 ;
260
+ if (Object. is( _c_, Stdlib [8 ]) ) return - 1 ;
261
261
throw caml_maybe_attach_backtrace(_c_, 0 );
262
262
}
263
263
if (val$ 0 && ! val$ 0 [2 ]){
@@ -267,7 +267,7 @@ let f t x =
267
267
try {var val = caml_call2(Stdlib_Hashtbl [6 ], t, x$ 0 ); switch$ 0 = 1 ;}
268
268
catch(_e_){
269
269
var _a_ = caml_wrap_exception(_e_);
270
- if (_a_ != = Stdlib [3 ]) throw caml_maybe_attach_backtrace(_a_, 0 );
270
+ if (! Object. is(_a_, Stdlib [3 ]) ) throw caml_maybe_attach_backtrace(_a_, 0 );
271
271
var _d_ = 0 ;
272
272
}
273
273
if (switch$ 0 ){
@@ -499,14 +499,11 @@ let add_substitute =
499
499
var lim = caml_ml_string_length(s), k = k$ 2 , stop = new_start;
500
500
for (;;){
501
501
if (lim < = stop) throw caml_maybe_attach_backtrace(Stdlib [8 ], 1 );
502
- if (caml_string_get(s, stop) === opening){
502
+ if (Object. is( caml_string_get(s, stop), opening) ){
503
503
var i = stop + 1 | 0 , k$ 0 = k + 1 | 0 , k = k$ 0 , stop = i;
504
504
continue;
505
505
}
506
- if (caml_string_get(s, stop) != = closing){
507
- var i$ 1 = stop + 1 | 0 , stop = i$ 1 ;
508
- continue;
509
- }
506
+ if (! Object. is(caml_string_get(s, stop), closing)){var i$ 1 = stop + 1 | 0 , stop = i$ 1 ; continue;}
510
507
if (0 != = k){
511
508
var i$ 0 = stop + 1 | 0 , k$ 1 = k - 1 | 0 , k = k$ 1 , stop = i$ 0 ;
512
509
continue;
0 commit comments