@@ -114,23 +114,23 @@ let compile ~use_super_errors ?react_ppx_version impl =
114
114
let shake_compile ~prefix ~use_super_errors ?react_ppx_version impl =
115
115
implementation ~prefix ~use_super_errors ?react_ppx_version impl
116
116
117
- let load_module cmi_path cmi_content cmj_name cmj_content =
117
+ (* let load_module cmi_path cmi_content cmj_name cmj_content =
118
118
Js.create_file cmi_path cmi_content;
119
119
Js_cmj_datasets.data_sets :=
120
120
Map_string.add !Js_cmj_datasets.data_sets
121
- cmj_name (lazy (Js_cmj_format. from_string cmj_content))
121
+ cmj_name (lazy (Js_cmj_format.from_string cmj_content)) *)
122
122
123
123
let export (field : string ) v =
124
124
Js.Unsafe. set (Js.Unsafe. global) field v
125
125
;;
126
126
127
127
(* To add a directory to the load path *)
128
-
128
+ (*
129
129
let dir_directory d =
130
130
Config.load_path := d :: !Config.load_path
131
131
132
132
let () =
133
- dir_directory " /static/cmis"
133
+ dir_directory "/static/cmis" *)
134
134
135
135
module Converter = Refmt_api.Migrate_parsetree. Convert (Refmt_api.Migrate_parsetree. OCaml_404 )(Refmt_api.Migrate_parsetree. OCaml_406 )
136
136
@@ -170,15 +170,15 @@ let make_compiler ~name ~prefix impl=
170
170
Js. wrap_meth_callback
171
171
(fun _ code -> (shake_compile impl ~use_super_errors: true ~prefix (Js. to_string code)));
172
172
" version" , Js.Unsafe. inject (Js. string (match name with | "reason" -> Refmt_api. version | _ -> Bs_version. version));
173
- " load_module" ,
173
+ (* "load_module",
174
174
inject @@
175
175
Js.wrap_meth_callback
176
176
(fun _ cmi_path cmi_content cmj_name cmj_content ->
177
177
let cmj_bytestring = Js.to_bytestring cmj_content in
178
178
(* HACK: force string tag to ASCII (9) to avoid
179
179
* UTF-8 encoding *)
180
180
Js.Unsafe.set cmj_bytestring "t" 9;
181
- load_module cmi_path cmi_content (Js. to_string cmj_name) cmj_bytestring);
181
+ load_module cmi_path cmi_content (Js.to_string cmj_name) cmj_bytestring); *)
182
182
|]))
183
183
184
184
let () = make_compiler ~name: " ocaml" ~prefix: " [@@@bs.config {no_export}]\n #1 \" repl.ml\"\n " Parse. implementation
0 commit comments