From 32b1563931f14aed23cb8763219f033f31ac5128 Mon Sep 17 00:00:00 2001 From: Hyeseong Kim Date: Mon, 25 Nov 2024 22:22:27 +0900 Subject: [PATCH] Bring `#import` back for Core compatibility (#7177) The primitive for dynamic import has been renamed to `%import`, but there are a few libraries directly rely on compiler primitives. --- compiler/ml/translcore.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/ml/translcore.ml b/compiler/ml/translcore.ml index a3f61e8990..aa902ee493 100644 --- a/compiler/ml/translcore.ml +++ b/compiler/ml/translcore.ml @@ -396,6 +396,7 @@ let primitives_table = ("#nullable_to_opt", Pnull_to_opt); ("#undefined_to_opt", Pundefined_to_opt); ("#makemutablelist", Pmakelist Mutable); + ("#import", Pimport); (* FIXME: Deprecated *) ("%obj_field", Parrayrefu); |]