Skip to content

Commit fe725f5

Browse files
committed
add more compat
1 parent 686eedd commit fe725f5

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

jscomp/ml/translcore.ml

+26-1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,28 @@ let comparisons_table =
182182
bigintcomp = Pbigintcomp Ceq;
183183
simplify_constant_constructor = false;
184184
} );
185+
186+
(* FIXME: Core compatibility *)
187+
( "%bs_min",
188+
{
189+
objcomp = Pobjmax;
190+
intcomp = Pintmax;
191+
boolcomp = Pboolmax;
192+
floatcomp = Pboolmax;
193+
stringcomp = Pstringmax;
194+
bigintcomp = Pbigintmax;
195+
simplify_constant_constructor = false;
196+
} );
197+
( "%bs_max",
198+
{
199+
objcomp = Pobjmin;
200+
intcomp = Pintmin;
201+
boolcomp = Pboolmin;
202+
floatcomp = Pfloatmin;
203+
stringcomp = Pstringmin;
204+
bigintcomp = Pbigintmin;
205+
simplify_constant_constructor = false;
206+
} );
185207
|]
186208

187209
let primitives_table =
@@ -360,7 +382,10 @@ let primitives_table =
360382
("#null", Pundefined);
361383
("#undefined", Pundefined);
362384
("#is_nullable", Pisnullable);
363-
("#nullable_to_opt", Pnullable_to_opt);
385+
("#null_to_opt", Pnullable_to_opt);
386+
("#nullable_to_opt", Pnull_to_opt);
387+
("#undefined_to_opt", Pundefined_to_opt);
388+
("#makemutablelist", Pmakelist Mutable);
364389
|]
365390

366391
let find_primitive prim_name = Hashtbl.find primitives_table prim_name

0 commit comments

Comments
 (0)