Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Dec 13, 2023
1 parent aef4f9f commit 22b307b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/tests-js-parser/run.ml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,14 @@ let patdiff = false
let vs_explicit = false

let accepted_by_node file =
ignore (Sys.command "node --version");
let ((ic, oc, ec) as ic_oc) =
Unix.open_process_full (Printf.sprintf "%s --check %s" node file) [||]
in
let pid = Unix.process_full_pid ic_oc in
let _pid, status = Unix.waitpid [] pid in
let s = In_channel.input_all ec in
if false then print_endline s;
close_in ic;
close_out oc;
close_in ec;
Expand Down

0 comments on commit 22b307b

Please sign in to comment.