From 98d7d37c75ce45cd7cfcc9a7ea61c1f2b5c74321 Mon Sep 17 00:00:00 2001 From: Hyeseong Kim Date: Mon, 23 Sep 2024 02:22:31 +0900 Subject: [PATCH] bring back a few primitives for Core compatibility --- jscomp/ml/translcore.ml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jscomp/ml/translcore.ml b/jscomp/ml/translcore.ml index a36afa350d1..e5554ec77b4 100644 --- a/jscomp/ml/translcore.ml +++ b/jscomp/ml/translcore.ml @@ -355,6 +355,12 @@ let primitives_table = (* Compiler internals, never expose to ReScript files *) ("#raw_expr", Pjs_raw_expr); ("#raw_stmt", Pjs_raw_stmt); + + (* FIXME: Core compatibility *) + ("#null", Pundefined); + ("#undefined", Pundefined); + ("#is_nullable", Pisnullable); + ("#nullable_to_opt", Pnullable_to_opt); |] let find_primitive prim_name = Hashtbl.find primitives_table prim_name