Skip to content

Commit e5e9e2d

Browse files
committed
Fix WAT debug output
1 parent 4f694dc commit e5e9e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/lib-wasm/generate.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,10 +1439,10 @@ module Generate (Target : Target_sig.S) = struct
14391439
global_context.other_fields <- List.rev_append functions global_context.other_fields;
14401440
let js_code = StringMap.bindings global_context.fragments in
14411441
global_context.fragments <- StringMap.empty;
1442+
Curry.f ~context:global_context;
14421443
toplevel_name, js_code
14431444

14441445
let output ~context =
1445-
Curry.f ~context;
14461446
let imports =
14471447
List.concat
14481448
(List.map

0 commit comments

Comments
 (0)