Skip to content

Commit

Permalink
Convert JS array to OCaml array
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Oct 17, 2022
1 parent 7ca05ce commit 2883120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ let js_run list source =
ignore (Pipeline.run_stdin_from_file list (Js.to_string source))

let js_viper filenames =
let result = Pipeline.viper_files (filenames |> Array.to_list |> List.map Js.to_string) in
let result = Pipeline.viper_files (Js.to_array filenames |> Array.to_list |> List.map Js.to_string) in
js_result result (fun s ->
Js.some (Js.string s)
)
Expand Down

0 comments on commit 2883120

Please sign in to comment.