Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bf96018

Browse files
committedJun 30, 2024·
Js.import -> Runtime_promise.import
1 parent 300ba69 commit bf96018

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎jscomp/ml/ast_await.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let create_await_module_expression ~module_type_lid (e : Parsetree.module_expr)
2424
(Exp.apply ~loc:e.pmod_loc
2525
(Exp.ident ~loc:e.pmod_loc
2626
{
27-
txt = Longident.Ldot (Lident "Js", "import");
27+
txt = Longident.Ldot (Lident Js_runtime_modules.promise, "import");
2828
loc = e.pmod_loc;
2929
})
3030
[

‎jscomp/runtime/runtime_promise.res

+2
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@
2424

2525
external unsafe_async: 'a => promise<'a> = "%identity"
2626
external unsafe_await: promise<'a> => 'a = "?await"
27+
28+
external import: 'a => promise<'a> = "#import"

0 commit comments

Comments
 (0)
Please sign in to comment.