Skip to content

Commit 98d7d37

Browse files
committed
bring back a few primitives for Core compatibility
1 parent 50c974d commit 98d7d37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jscomp/ml/translcore.ml

+6
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,12 @@ let primitives_table =
355355
(* Compiler internals, never expose to ReScript files *)
356356
("#raw_expr", Pjs_raw_expr);
357357
("#raw_stmt", Pjs_raw_stmt);
358+
359+
(* FIXME: Core compatibility *)
360+
("#null", Pundefined);
361+
("#undefined", Pundefined);
362+
("#is_nullable", Pisnullable);
363+
("#nullable_to_opt", Pnullable_to_opt);
358364
|]
359365

360366
let find_primitive prim_name = Hashtbl.find primitives_table prim_name

0 commit comments

Comments
 (0)