Skip to content

Commit

Permalink
bring back a few primitives for Core compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Sep 22, 2024
1 parent 50c974d commit 98d7d37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jscomp/ml/translcore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98d7d37

Please sign in to comment.