@@ -85,20 +85,20 @@ let rec fun_with_loop acc = function
85
85
return caml_call1(Stdlib_List [9 ], _d_);
86
86
}
87
87
var x = param$ 0 [1 ];
88
- if (1 === x && ! param$ 0 [2 ]){
88
+ if (Object. is( 1 , x) && ! param$ 0 [2 ]){
89
89
var a$ 0 = [0 , acc$ 0 ], i$ 0 = 0 ;
90
90
for (;;){
91
91
a$ 0 [1 ] = [0 , 1 , a$ 0 [1 ]];
92
92
var _b_ = i$ 0 + 1 | 0 ;
93
- if (10 === i$ 0 ) return a$ 0 [1 ];
93
+ if (Object. is( 10 , i$ 0 ) ) return a$ 0 [1 ];
94
94
var i$ 0 = _b_;
95
95
}
96
96
}
97
97
var xs = param$ 0 [2 ], a = [0 , acc$ 0 ], i = 0 ;
98
98
for (;;){
99
99
a[1 ] = [0 , 1 , a[1 ]];
100
100
var _a_ = i + 1 | 0 ;
101
- if (10 != = i ){var i = _a_; continue;}
101
+ if (! Object. is( 10 , i) ){var i = _a_; continue;}
102
102
var acc$ 1 = [0 , x, a[1 ]], acc$ 0 = acc$ 1 , param$ 0 = xs;
103
103
continue a;
104
104
}
@@ -135,9 +135,9 @@ let for_for_while () =
135
135
for (;;){
136
136
if (10 > runtime.caml_mul(k, j)){id[1 ]++ ; continue;}
137
137
var _b_ = j + 1 | 0 ;
138
- if (10 != = j ){var j = _b_; continue b;}
138
+ if (! Object. is( 10 , j) ){var j = _b_; continue b;}
139
139
var _a_ = k + 1 | 0 ;
140
- if (10 === k ) return 0 ;
140
+ if (Object. is( 10 , k) ) return 0 ;
141
141
var k = _a_;
142
142
continue a;
143
143
}
@@ -179,9 +179,9 @@ let for_for_while () =
179
179
continue;
180
180
}
181
181
var _b_ = j + 1 | 0 ;
182
- if (10 != = j ){var j = _b_; continue b;}
182
+ if (! Object. is( 10 , j) ){var j = _b_; continue b;}
183
183
var _a_ = k + 1 | 0 ;
184
- if (10 === k ) return 0 ;
184
+ if (Object. is( 10 , k) ) return 0 ;
185
185
var k = _a_;
186
186
continue a;
187
187
}
@@ -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,13 +267,13 @@ 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 ){
274
274
var switch$ 1 = 0 ;
275
275
if (val && ! val[2 ]){
276
- var y = val[1 ], _b_ = y === ( x$ 0 + 1 | 0 ) ? 1 : 0 ;
276
+ var y = val[1 ], _b_ = Object. is(y, x$ 0 + 1 | 0 ) ? 1 : 0 ;
277
277
if (! _b_){var x$ 0 = y; continue;}
278
278
var _d_ = _b_;
279
279
switch$ 1 = 1 ;
@@ -313,8 +313,8 @@ in loop x
313
313
function inspect(x){
314
314
var x$ 1 = x;
315
315
for (;;){
316
- if (0 === x$ 1 ) return 1 ;
317
- if (1 != = x$ 1 ){var x$ 2 = x$ 1 + 1 | 0 , x$ 1 = x$ 2 ; continue;}
316
+ if (Object. is( 0 , x$ 1 ) ) return 1 ;
317
+ if (! Object. is( 1 , x$ 1 ) ){var x$ 2 = x$ 1 + 1 | 0 , x$ 1 = x$ 2 ; continue;}
318
318
var x$ 0 = 2 ;
319
319
for (;;){
320
320
var switch$ 0 = 0 ;
@@ -431,34 +431,34 @@ let add_substitute =
431
431
var lim$ 1 = caml_ml_string_length(s), previous = 32 , i$ 4 = 0 ;
432
432
for (;;){
433
433
if (i$ 4 > = lim$ 1 ){
434
- var _b_ = 92 === previous ? 1 : 0 ;
434
+ var _b_ = Object. is( 92 , previous) ? 1 : 0 ;
435
435
return _b_ ? caml_call2(add_char, b, previous) : _b_;
436
436
}
437
437
var previous$ 0 = caml_string_get(s, i$ 4 );
438
- if (36 != = previous$ 0 ){
439
- if (92 === previous){
438
+ if (! Object. is( 36 , previous$ 0 ) ){
439
+ if (Object. is( 92 , previous) ){
440
440
caml_call2(add_char, b, 92 );
441
441
caml_call2(add_char, b, previous$ 0 );
442
442
var i$ 6 = i$ 4 + 1 | 0 , previous = 32 , i$ 4 = i$ 6 ;
443
443
continue;
444
444
}
445
- if (92 === previous$ 0 ){
445
+ if (Object. is( 92 , previous$ 0 ) ){
446
446
var i$ 7 = i$ 4 + 1 | 0 , previous = previous$ 0 , i$ 4 = i$ 7 ;
447
447
continue;
448
448
}
449
449
caml_call2(add_char, b, previous$ 0 );
450
450
var i$ 8 = i$ 4 + 1 | 0 , previous = previous$ 0 , i$ 4 = i$ 8 ;
451
451
continue;
452
452
}
453
- if (92 === previous){
453
+ if (Object. is( 92 , previous) ){
454
454
caml_call2(add_char, b, previous$ 0 );
455
455
var i$ 5 = i$ 4 + 1 | 0 , previous = 32 , i$ 4 = i$ 5 ;
456
456
continue;
457
457
}
458
458
var start$ 0 = i$ 4 + 1 | 0 ;
459
459
if (lim$ 1 < = start$ 0 ) throw caml_maybe_attach_backtrace(Stdlib [8 ], 1 );
460
460
var opening = caml_string_get(s, start$ 0 ), switch$ 0 = 0 ;
461
- if (40 != = opening && 123 != = opening){
461
+ if (! Object. is( 40 , opening) && ! Object. is( 123 , opening) ){
462
462
var start = start$ 0 + 1 | 0 , lim$ 0 = caml_ml_string_length(s), i$ 2 = start;
463
463
for (;;){
464
464
if (lim$ 0 < = i$ 2 )
@@ -469,7 +469,7 @@ let add_substitute =
469
469
if (97 < = match ){
470
470
if (123 > match ) switch$ 1 = 1 ;
471
471
}
472
- else if (95 === match ) switch$ 1 = 1 ;
472
+ else if (Object. is( 95 , match ) ) switch$ 1 = 1 ;
473
473
}
474
474
else if (58 < = match ){
475
475
if (65 < = match ) switch$ 1 = 1 ;
@@ -489,25 +489,22 @@ let add_substitute =
489
489
}
490
490
if (! switch$ 0 ){
491
491
var new_start = start$ 0 + 1 | 0 , k$ 2 = 0 ;
492
- if (40 === opening)
492
+ if (Object. is( 40 , opening) )
493
493
var closing = 41 ;
494
494
else {
495
- if (123 != = opening)
495
+ if (! Object. is( 123 , opening) )
496
496
throw caml_maybe_attach_backtrace([0 , Assert_failure , _a_], 1 );
497
497
var closing = 125 ;
498
498
}
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
- }
510
- if (0 != = k){
506
+ if (! Object. is(caml_string_get(s, stop), closing)){var i$ 1 = stop + 1 | 0 , stop = i$ 1 ; continue;}
507
+ if (! Object. is(0 , k)){
511
508
var i$ 0 = stop + 1 | 0 , k$ 1 = k - 1 | 0 , k = k$ 1 , stop = i$ 0 ;
512
509
continue;
513
510
}
0 commit comments