Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion compiler/lib-wasm/curry.ml
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ module Make (Target : Target_sig.S) = struct
}

let f ~context =
let context = { context with other_fields = context.other_fields } in
IntMap.iter
(fun arity name ->
let f = apply ~context ~arity ~name in
Expand Down Expand Up @@ -388,5 +389,6 @@ module Make (Target : Target_sig.S) = struct
(fun arity name ->
let f = dummy ~context ~cps:true ~arity ~name in
context.other_fields <- f :: context.other_fields)
context.cps_dummy_funs
context.cps_dummy_funs;
context
end
2 changes: 1 addition & 1 deletion compiler/lib-wasm/curry.mli
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
*)

module Make (_ : Target_sig.S) : sig
val f : context:Code_generation.context -> unit
val f : context:Code_generation.context -> Code_generation.context
end
2 changes: 1 addition & 1 deletion compiler/lib-wasm/generate.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ module Generate (Target : Target_sig.S) = struct
toplevel_name, js_code

let output ~context =
Curry.f ~context;
let context = Curry.f ~context in
let imports =
List.concat
(List.map
Expand Down
Loading