Skip to content

Commit e263f97

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

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

jscomp/ml/translcore.ml

+27-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 =
@@ -359,8 +381,12 @@ let primitives_table =
359381
(* FIXME: Core compatibility *)
360382
("#null", Pundefined);
361383
("#undefined", Pundefined);
384+
("#typeof", Ptypeof);
362385
("#is_nullable", Pisnullable);
363-
("#nullable_to_opt", Pnullable_to_opt);
386+
("#null_to_opt", Pnullable_to_opt);
387+
("#nullable_to_opt", Pnull_to_opt);
388+
("#undefined_to_opt", Pundefined_to_opt);
389+
("#makemutablelist", Pmakelist Mutable);
364390
|]
365391

366392
let find_primitive prim_name = Hashtbl.find primitives_table prim_name

0 commit comments

Comments
 (0)