E586 [interpreter] Fix JS conversion in assertions (#1989) · WebAssembly/spec@c92c9ae · GitHub
[go: up one dir, main page]

Skip to content

Commit c92c9ae

Browse files
authored
[interpreter] Fix JS conversion in assertions (#1989)
1 parent 99cde9f commit c92c9ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interpreter/script/js.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,15 +776,15 @@ let of_action env act =
776776

777777
let of_assertion' env act loc name args wrapper_opt =
778778
let act_js, act_wrapper_opt = of_action env act in
779-
let js = name ^ "(() => " ^ act_js ^ loc ^ String.concat ", " ("" :: args) ^ ")" in
779+
let js = name ^ "(() => " ^ act_js ^ ", " ^ loc ^ String.concat ", " ("" :: args) ^ ")" in
780780
match act_wrapper_opt with
781781
| None -> js ^ ";"
782782
| Some (act_wrapper, out) ->
783783
let run_name, wrapper =
784784
match wrapper_opt with
785785
| None -> name, run
786786
| Some wrapper -> "run", wrapper
787-
in run_name ^ "(() => " ^ act_wrapper (wrapper out) act.at ^ loc ^ "); // " ^ js
787+
in run_name ^ "(() => " ^ act_wrapper (wrapper out) act.at ^ ", " ^ loc ^ "); // " ^ js
788788

789789
let of_assertion env ass =
790790
let loc = of_loc ass.at in

0 commit comments

Comments
 (0)
0