this repo has no description

Replace RPC with message-based protocol for web worker

- Add idl/message.ml with typed JSON message protocol for client-worker
communication (Init, Eval, Complete, TypeAt, Errors, CreateEnv, DestroyEnv)
- Rewrite lib/worker.ml to use message handlers instead of RPC server stubs
- Add multi-universe support to findlibish.ml for loading META files from
multiple findlib_index sources with cycle detection
- Update node test expected files for new output format

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

+2800 -388
+1 -1
example/dune
··· 37 37 (link_flags (-linkall)) 38 38 (js_of_ocaml 39 39 (javascript_files ../lib/stubs.js) 40 - (flags --effects=disabled --toplevel +toplevel.js +dynlink.js)) 40 + (flags --effects=disabled --toplevel --opt 3 +toplevel.js +dynlink.js)) 41 41 (libraries js_top_worker-web logs.browser mime_printer tyxml)) 42 42 43 43 (executable
+8
idl/dune
··· 5 5 (libraries rresult mime_printer merlin-lib.query_protocol rpclib rpclib.json)) 6 6 7 7 (library 8 + (name js_top_worker_message) 9 + (package js_top_worker-rpc) 10 + (modules message) 11 + (libraries js_of_ocaml) 12 + (preprocess 13 + (pps js_of_ocaml-ppx))) 14 + 15 + (library 8 16 (name js_top_worker_client) 9 17 (public_name js_top_worker-client) 10 18 (modules js_top_worker_client)
+274
idl/message.ml
··· 1 + (** Message protocol for worker communication. 2 + 3 + This module defines a simple JSON-based message protocol for communication 4 + between the client and the OCaml toplevel worker. *) 5 + 6 + open Js_of_ocaml 7 + 8 + (** {1 Types} *) 9 + 10 + type mime_val = { 11 + mime_type : string; 12 + data : string; 13 + } 14 + 15 + type position = { 16 + pos_cnum : int; 17 + pos_lnum : int; 18 + pos_bol : int; 19 + } 20 + 21 + type location = { 22 + loc_start : position; 23 + loc_end : position; 24 + } 25 + 26 + type compl_entry = { 27 + name : string; 28 + kind : string; 29 + desc : string; 30 + info : string; 31 + deprecated : bool; 32 + } 33 + 34 + type completions = { 35 + from : int; 36 + to_ : int; 37 + entries : compl_entry list; 38 + } 39 + 40 + type error = { 41 + kind : string; 42 + loc : location; 43 + main : string; 44 + sub : string list; 45 + source : string; 46 + } 47 + 48 + type type_info = { 49 + loc : location; 50 + type_str : string; 51 + tail : string; 52 + } 53 + 54 + type init_config = { 55 + findlib_requires : string list; 56 + stdlib_dcs : string option; 57 + findlib_index : string option; 58 + } 59 + 60 + (** {1 Client -> Worker messages} *) 61 + 62 + type client_msg = 63 + | Init of init_config 64 + | Eval of { cell_id : int; env_id : string; code : string } 65 + | Complete of { cell_id : int; env_id : string; source : string; position : int } 66 + | TypeAt of { cell_id : int; env_id : string; source : string; position : int } 67 + | Errors of { cell_id : int; env_id : string; source : string } 68 + | CreateEnv of { env_id : string } 69 + | DestroyEnv of { env_id : string } 70 + 71 + (** {1 Worker -> Client messages} *) 72 + 73 + type worker_msg = 74 + | Ready 75 + | InitError of { message : string } 76 + | Output of { 77 + cell_id : int; 78 + stdout : string; 79 + stderr : string; 80 + caml_ppf : string; 81 + mime_vals : mime_val list; 82 + } 83 + | Completions of { cell_id : int; completions : completions } 84 + | Types of { cell_id : int; types : type_info list } 85 + | ErrorList of { cell_id : int; errors : error list } 86 + | EvalError of { cell_id : int; message : string } 87 + | EnvCreated of { env_id : string } 88 + | EnvDestroyed of { env_id : string } 89 + 90 + (** {1 JSON helpers} *) 91 + 92 + let json_of_obj pairs = 93 + Js.Unsafe.obj (Array.of_list (List.map (fun (k, v) -> (k, Js.Unsafe.inject v)) pairs)) 94 + 95 + let json_string s = Js.Unsafe.inject (Js.string s) 96 + let json_int n = Js.Unsafe.inject n 97 + let json_bool b = Js.Unsafe.inject (Js.bool b) 98 + 99 + let json_array arr = 100 + Js.Unsafe.inject (Js.array (Array.of_list arr)) 101 + 102 + let get_string obj key = 103 + Js.to_string (Js.Unsafe.get obj (Js.string key)) 104 + 105 + let get_int obj key = 106 + Js.Unsafe.get obj (Js.string key) 107 + 108 + let get_string_opt obj key = 109 + let v : Js.js_string Js.t Js.Optdef.t = Js.Unsafe.get obj (Js.string key) in 110 + Js.Optdef.to_option v |> Option.map Js.to_string 111 + 112 + let get_array obj key = 113 + Js.to_array (Js.Unsafe.get obj (Js.string key)) 114 + 115 + let get_string_array obj key = 116 + Array.to_list (Array.map Js.to_string (get_array obj key)) 117 + 118 + (** {1 Worker message serialization} *) 119 + 120 + let json_of_position p = 121 + json_of_obj [ 122 + ("pos_cnum", json_int p.pos_cnum); 123 + ("pos_lnum", json_int p.pos_lnum); 124 + ("pos_bol", json_int p.pos_bol); 125 + ] 126 + 127 + let json_of_location loc = 128 + json_of_obj [ 129 + ("loc_start", Js.Unsafe.inject (json_of_position loc.loc_start)); 130 + ("loc_end", Js.Unsafe.inject (json_of_position loc.loc_end)); 131 + ] 132 + 133 + let json_of_mime_val mv = 134 + json_of_obj [ 135 + ("mime_type", json_string mv.mime_type); 136 + ("data", json_string mv.data); 137 + ] 138 + 139 + let json_of_compl_entry e = 140 + json_of_obj [ 141 + ("name", json_string e.name); 142 + ("kind", json_string e.kind); 143 + ("desc", json_string e.desc); 144 + ("info", json_string e.info); 145 + ("deprecated", json_bool e.deprecated); 146 + ] 147 + 148 + let json_of_completions c = 149 + json_of_obj [ 150 + ("from", json_int c.from); 151 + ("to", json_int c.to_); 152 + ("entries", json_array (List.map (fun e -> Js.Unsafe.inject (json_of_compl_entry e)) c.entries)); 153 + ] 154 + 155 + let json_of_error e = 156 + json_of_obj [ 157 + ("kind", json_string e.kind); 158 + ("loc", Js.Unsafe.inject (json_of_location e.loc)); 159 + ("main", json_string e.main); 160 + ("sub", json_array (List.map json_string e.sub)); 161 + ("source", json_string e.source); 162 + ] 163 + 164 + let json_of_type_info t = 165 + json_of_obj [ 166 + ("loc", Js.Unsafe.inject (json_of_location t.loc)); 167 + ("type_str", json_string t.type_str); 168 + ("tail", json_string t.tail); 169 + ] 170 + 171 + let json_of_worker_msg msg = 172 + let obj = match msg with 173 + | Ready -> 174 + json_of_obj [("type", json_string "ready")] 175 + | InitError { message } -> 176 + json_of_obj [ 177 + ("type", json_string "init_error"); 178 + ("message", json_string message); 179 + ] 180 + | Output { cell_id; stdout; stderr; caml_ppf; mime_vals } -> 181 + json_of_obj [ 182 + ("type", json_string "output"); 183 + ("cell_id", json_int cell_id); 184 + ("stdout", json_string stdout); 185 + ("stderr", json_string stderr); 186 + ("caml_ppf", json_string caml_ppf); 187 + ("mime_vals", json_array (List.map (fun mv -> Js.Unsafe.inject (json_of_mime_val mv)) mime_vals)); 188 + ] 189 + | Completions { cell_id; completions } -> 190 + json_of_obj [ 191 + ("type", json_string "completions"); 192 + ("cell_id", json_int cell_id); 193 + ("completions", Js.Unsafe.inject (json_of_completions completions)); 194 + ] 195 + | Types { cell_id; types } -> 196 + json_of_obj [ 197 + ("type", json_string "types"); 198 + ("cell_id", json_int cell_id); 199 + ("types", json_array (List.map (fun t -> Js.Unsafe.inject (json_of_type_info t)) types)); 200 + ] 201 + | ErrorList { cell_id; errors } -> 202 + json_of_obj [ 203 + ("type", json_string "errors"); 204 + ("cell_id", json_int cell_id); 205 + ("errors", json_array (List.map (fun e -> Js.Unsafe.inject (json_of_error e)) errors)); 206 + ] 207 + | EvalError { cell_id; message } -> 208 + json_of_obj [ 209 + ("type", json_string "eval_error"); 210 + ("cell_id", json_int cell_id); 211 + ("message", json_string message); 212 + ] 213 + | EnvCreated { env_id } -> 214 + json_of_obj [ 215 + ("type", json_string "env_created"); 216 + ("env_id", json_string env_id); 217 + ] 218 + | EnvDestroyed { env_id } -> 219 + json_of_obj [ 220 + ("type", json_string "env_destroyed"); 221 + ("env_id", json_string env_id); 222 + ] 223 + in 224 + Js.to_string (Json.output obj) 225 + 226 + (** {1 Client message parsing} *) 227 + 228 + let parse_init_config obj = 229 + { 230 + findlib_requires = get_string_array obj "findlib_requires"; 231 + stdlib_dcs = get_string_opt obj "stdlib_dcs"; 232 + findlib_index = get_string_opt obj "findlib_index"; 233 + } 234 + 235 + let client_msg_of_string s = 236 + let obj = Json.unsafe_input (Js.string s) in 237 + let typ = get_string obj "type" in 238 + match typ with 239 + | "init" -> 240 + Init (parse_init_config obj) 241 + | "eval" -> 242 + Eval { 243 + cell_id = get_int obj "cell_id"; 244 + env_id = get_string obj "env_id"; 245 + code = get_string obj "code"; 246 + } 247 + | "complete" -> 248 + Complete { 249 + cell_id = get_int obj "cell_id"; 250 + env_id = get_string obj "env_id"; 251 + source = get_string obj "source"; 252 + position = get_int obj "position"; 253 + } 254 + | "type_at" -> 255 + TypeAt { 256 + cell_id = get_int obj "cell_id"; 257 + env_id = get_string obj "env_id"; 258 + source = get_string obj "source"; 259 + position = get_int obj "position"; 260 + } 261 + | "errors" -> 262 + Errors { 263 + cell_id = get_int obj "cell_id"; 264 + env_id = get_string obj "env_id"; 265 + source = get_string obj "source"; 266 + } 267 + | "create_env" -> 268 + CreateEnv { env_id = get_string obj "env_id" } 269 + | "destroy_env" -> 270 + DestroyEnv { env_id = get_string obj "env_id" } 271 + | _ -> 272 + failwith ("Unknown message type: " ^ typ) 273 + 274 + let string_of_worker_msg = json_of_worker_msg
+1
lib/dune
··· 40 40 (pps js_of_ocaml-ppx)) 41 41 (libraries 42 42 js_top_worker 43 + js_top_worker_message 43 44 js_of_ocaml-ppx 44 45 js_of_ocaml-toplevel 45 46 js_of_ocaml-lwt
+77 -24
lib/findlibish.ml
··· 126 126 let (let*) = Lwt.bind 127 127 128 128 (** Parse a findlib_index file (JSON or legacy text format) and return 129 - the list of META file paths. 129 + the list of META file paths and universe paths. 130 130 131 - JSON format: [{"metas": ["path/to/META", ...]}] 131 + JSON format: {"meta_files": ["path/to/META", ...], "universes": ["universe1", ...]} 132 132 133 - The paths are absolute from the URL root and include universe hashes, 134 - e.g., ["abc123/lib/cmdliner/META", "def456/lib/astring/META"] *) 133 + meta_files: direct paths to META files 134 + universes: paths to other universes (directories containing findlib_index) *) 135 135 let parse_findlib_index content = 136 136 (* Try JSON format first *) 137 137 try 138 138 let json = Yojson.Safe.from_string content in 139 139 let open Yojson.Safe.Util in 140 - json |> member "metas" |> to_list |> List.map to_string 140 + (* Support both "meta_files" and "metas" for compatibility *) 141 + let meta_files = 142 + try json |> member "meta_files" |> to_list |> List.map to_string 143 + with _ -> 144 + try json |> member "metas" |> to_list |> List.map to_string 145 + with _ -> [] 146 + in 147 + (* Support both "universes" and "deps" for compatibility *) 148 + let universes = 149 + try json |> member "universes" |> to_list |> List.map to_string 150 + with _ -> 151 + try json |> member "deps" |> to_list |> List.map to_string 152 + with _ -> [] 153 + in 154 + (meta_files, universes) 141 155 with _ -> 142 - (* Fall back to legacy whitespace-separated format *) 143 - Astring.String.fields ~empty:false content 156 + (* Fall back to legacy whitespace-separated format (no universes) *) 157 + (Astring.String.fields ~empty:false content, []) 144 158 145 159 (** Load a single META file and parse it into a library *) 146 160 let load_meta async_get meta_path = ··· 175 189 Jslib.log "Failed to parse uri: %s" m; 176 190 Lwt.return_none 177 191 178 - (** Resolve a path from the URL root *) 179 - let resolve_url_from_root ~base path = 192 + (** Resolve a path relative to the directory of the base URL. 193 + Used for meta_files which are relative to their findlib_index. 194 + e.g. base="http://host/demo1/base/findlib_index", path="lib/base/META" 195 + => "http://host/demo1/base/lib/base/META" *) 196 + let resolve_relative_to_dir ~base path = 197 + match Angstrom.parse_string ~consume:All Uri.Parser.uri_reference base with 198 + | Ok base_uri -> 199 + let base_path = Uri.path base_uri in 200 + let parent_dir = 201 + match Fpath.of_string base_path with 202 + | Ok p -> Fpath.parent p |> Fpath.to_string 203 + | Error _ -> "/" 204 + in 205 + let resolved = Filename.concat parent_dir path in 206 + Uri.with_path base_uri resolved |> Uri.to_string 207 + | Error _ -> path 208 + 209 + (** Resolve a path as absolute from root (preserving scheme/host from base). 210 + Used for universe paths which are already full paths from root. 211 + e.g. base="http://host/demo1/findlib_index", path="demo1/base/findlib_index" 212 + => "http://host/demo1/base/findlib_index" *) 213 + let resolve_from_root ~base path = 180 214 match Angstrom.parse_string ~consume:All Uri.Parser.uri_reference base with 181 215 | Ok base_uri -> 182 216 let resolved = "/" ^ path in 183 217 Uri.with_path base_uri resolved |> Uri.to_string 184 - | Error _ -> path 218 + | Error _ -> "/" ^ path 185 219 186 220 let init (async_get : string -> (string, [>`Msg of string]) result Lwt.t) findlib_index : t Lwt.t = 187 221 Jslib.log "Initializing findlib"; 188 - let* findlib_txt = async_get findlib_index in 189 - match findlib_txt with 190 - | Error (`Msg m) -> 191 - Jslib.log "Error fetching findlib index %s: %s" findlib_index m; 222 + (* Track visited universes to avoid infinite loops *) 223 + let visited = Hashtbl.create 16 in 224 + let rec load_universe index_url = 225 + if Hashtbl.mem visited index_url then 192 226 Lwt.return [] 193 - | Ok content -> 194 - let metas = parse_findlib_index content in 195 - Jslib.log "Loaded findlib_index %s: %d META files" findlib_index (List.length metas); 196 - (* Resolve META paths from URL root *) 197 - let resolved_metas = 198 - List.map (fun p -> resolve_url_from_root ~base:findlib_index p) metas 199 - in 200 - (* Load all META files *) 201 - let* libs = Lwt_list.filter_map_p (load_meta async_get) resolved_metas in 202 - Lwt.return (flatten_libs libs) 227 + else begin 228 + Hashtbl.add visited index_url (); 229 + let* findlib_txt = async_get index_url in 230 + match findlib_txt with 231 + | Error (`Msg m) -> 232 + Jslib.log "Error fetching findlib index %s: %s" index_url m; 233 + Lwt.return [] 234 + | Ok content -> 235 + let meta_files, universes = parse_findlib_index content in 236 + Jslib.log "Loaded findlib_index %s: %d META files, %d universes" 237 + index_url (List.length meta_files) (List.length universes); 238 + (* Resolve META paths relative to findlib_index directory *) 239 + let resolved_metas = 240 + List.map (fun p -> resolve_relative_to_dir ~base:index_url p) meta_files 241 + in 242 + (* Load META files from this universe *) 243 + let* local_libs = Lwt_list.filter_map_p (load_meta async_get) resolved_metas in 244 + (* Resolve universe paths from root (they're already full paths) *) 245 + let universe_index_urls = 246 + List.map (fun u -> 247 + resolve_from_root ~base:index_url (Filename.concat u "findlib_index")) 248 + universes 249 + in 250 + let* universe_libs = Lwt_list.map_p load_universe universe_index_urls in 251 + Lwt.return (local_libs @ List.flatten universe_libs) 252 + end 253 + in 254 + let* all_libs = load_universe findlib_index in 255 + Lwt.return (flatten_libs all_libs) 203 256 204 257 let require ~import_scripts sync_get cmi_only v packages = 205 258 let rec require dcss package :
+197 -31
lib/worker.ml
··· 1 1 open Js_top_worker_rpc 2 2 open Js_top_worker 3 - module Server = Toplevel_api_gen.Make (Impl.IdlM.GenServer ()) 4 3 5 4 (* OCamlorg toplevel in a web worker 6 5 7 - This communicates with the toplevel code via the API defined in 8 - {!Toplevel_api}. This allows the OCaml execution to not block the "main 9 - thread" keeping the page responsive. *) 6 + This communicates with the toplevel code via a simple message-based 7 + protocol defined in {!Js_top_worker_message.Message}. This allows 8 + the OCaml execution to not block the "main thread" keeping the page 9 + responsive. *) 10 10 11 - let server process e = 12 - let id, call = Transport.Json.id_and_call_of_string e in 13 - Lwt.bind (process call) (fun response -> 14 - let rtxt = Transport.Json.string_of_response ~id response in 15 - Js_of_ocaml.Worker.post_message (Js_of_ocaml.Js.string rtxt); 16 - Lwt.return ()) 11 + module Msg = Js_top_worker_message.Message 17 12 18 13 let loc = function 19 14 | Syntaxerr.Error x -> Some (Syntaxerr.location_of_error x) ··· 83 78 84 79 module M = Impl.Make (S) 85 80 86 - let test () = 87 - let oc = open_out "/tmp/mytest.txt" in 88 - Printf.fprintf oc "Hello, world\n%!"; 89 - close_out oc 81 + (** Send a message back to the client *) 82 + let send_message msg = 83 + let json = Msg.string_of_worker_msg msg in 84 + Jslib.log "Worker sending: %s" json; 85 + Js_of_ocaml.Worker.post_message (Js_of_ocaml.Js.string json) 86 + 87 + (** Convert exec_result to Message.Output *) 88 + let output_of_exec_result cell_id (r : Toplevel_api_gen.exec_result) = 89 + let mime_vals = List.map (fun (mv : Toplevel_api_gen.mime_val) -> 90 + { Msg.mime_type = mv.mime_type; data = mv.data } 91 + ) r.mime_vals in 92 + Msg.Output { 93 + cell_id; 94 + stdout = Option.value ~default:"" r.stdout; 95 + stderr = Option.value ~default:"" r.stderr; 96 + caml_ppf = Option.value ~default:"" r.caml_ppf; 97 + mime_vals; 98 + } 99 + 100 + (** Convert completions to Message.Completions *) 101 + let completions_of_result cell_id (c : Toplevel_api_gen.completions) = 102 + let entries = List.map (fun (e : Toplevel_api_gen.query_protocol_compl_entry) -> 103 + let kind = match e.kind with 104 + | Constructor -> "Constructor" 105 + | Keyword -> "Keyword" 106 + | Label -> "Label" 107 + | MethodCall -> "MethodCall" 108 + | Modtype -> "Modtype" 109 + | Module -> "Module" 110 + | Type -> "Type" 111 + | Value -> "Value" 112 + | Variant -> "Variant" 113 + in 114 + { Msg.name = e.name; kind; desc = e.desc; info = e.info; deprecated = e.deprecated } 115 + ) c.entries in 116 + Msg.Completions { 117 + cell_id; 118 + completions = { from = c.from; to_ = c.to_; entries }; 119 + } 120 + 121 + (** Convert location to Message.location *) 122 + let location_of_loc (loc : Toplevel_api_gen.location) : Msg.location = 123 + { 124 + loc_start = { 125 + pos_cnum = loc.loc_start.pos_cnum; 126 + pos_lnum = loc.loc_start.pos_lnum; 127 + pos_bol = loc.loc_start.pos_bol; 128 + }; 129 + loc_end = { 130 + pos_cnum = loc.loc_end.pos_cnum; 131 + pos_lnum = loc.loc_end.pos_lnum; 132 + pos_bol = loc.loc_end.pos_bol; 133 + }; 134 + } 135 + 136 + (** Convert error_kind to string *) 137 + let string_of_error_kind = function 138 + | Toplevel_api_gen.Report_error -> "error" 139 + | Report_warning s -> "warning:" ^ s 140 + | Report_warning_as_error s -> "warning_as_error:" ^ s 141 + | Report_alert s -> "alert:" ^ s 142 + | Report_alert_as_error s -> "alert_as_error:" ^ s 143 + 144 + (** Convert error_source to string *) 145 + let string_of_error_source = function 146 + | Toplevel_api_gen.Lexer -> "lexer" 147 + | Parser -> "parser" 148 + | Typer -> "typer" 149 + | Warning -> "warning" 150 + | Unknown -> "unknown" 151 + | Env -> "env" 152 + | Config -> "config" 153 + 154 + (** Convert errors to Message.ErrorList *) 155 + let errors_of_result cell_id (errors : Toplevel_api_gen.error list) = 156 + let errors = List.map (fun (e : Toplevel_api_gen.error) -> 157 + { 158 + Msg.kind = string_of_error_kind e.kind; 159 + loc = location_of_loc e.loc; 160 + main = e.main; 161 + sub = e.sub; 162 + source = string_of_error_source e.source; 163 + } 164 + ) errors in 165 + Msg.ErrorList { cell_id; errors } 166 + 167 + (** Convert typed_enclosings to Message.Types *) 168 + let types_of_result cell_id (enclosings : Toplevel_api_gen.typed_enclosings list) = 169 + let types = List.map (fun ((loc, idx_or_str, tail) : Toplevel_api_gen.typed_enclosings) -> 170 + let type_str = match idx_or_str with 171 + | Toplevel_api_gen.String s -> s 172 + | Index _ -> "" 173 + in 174 + let tail = match tail with 175 + | Toplevel_api_gen.No -> "no" 176 + | Tail_position -> "tail_position" 177 + | Tail_call -> "tail_call" 178 + in 179 + { 180 + Msg.loc = location_of_loc loc; 181 + type_str; 182 + tail; 183 + } 184 + ) enclosings in 185 + Msg.Types { cell_id; types } 186 + 187 + (** Convert position from int to Toplevel_api_gen.msource_position *) 188 + let position_of_int pos = 189 + Toplevel_api_gen.Offset pos 190 + 191 + (** Handle a client message *) 192 + let handle_message msg = 193 + let open Lwt.Infix in 194 + match msg with 195 + | Msg.Init config -> 196 + let init_config : Toplevel_api_gen.init_config = { 197 + findlib_requires = config.findlib_requires; 198 + stdlib_dcs = config.stdlib_dcs; 199 + findlib_index = config.findlib_index; 200 + execute = true; 201 + } in 202 + M.init init_config >>= fun result -> 203 + (match result with 204 + | Ok () -> 205 + (* After init, automatically setup the default environment *) 206 + M.setup "" >|= fun setup_result -> 207 + (match setup_result with 208 + | Ok _ -> send_message Msg.Ready 209 + | Error (Toplevel_api_gen.InternalError msg) -> 210 + send_message (Msg.InitError { message = msg })) 211 + | Error (Toplevel_api_gen.InternalError msg) -> 212 + send_message (Msg.InitError { message = msg }); 213 + Lwt.return_unit) 214 + 215 + | Msg.Eval { cell_id; env_id; code } -> 216 + Jslib.log "Eval cell_id=%d env_id=%s" cell_id env_id; 217 + Rpc_lwt.T.get (M.execute env_id code) >|= fun result -> 218 + (match result with 219 + | Ok exec_result -> 220 + send_message (output_of_exec_result cell_id exec_result) 221 + | Error (Toplevel_api_gen.InternalError msg) -> 222 + send_message (Msg.EvalError { cell_id; message = msg })) 223 + 224 + | Msg.Complete { cell_id; env_id; source; position } -> 225 + let pos = position_of_int position in 226 + Rpc_lwt.T.get (M.complete_prefix env_id None [] false source pos) >|= fun result -> 227 + (match result with 228 + | Ok completions -> 229 + send_message (completions_of_result cell_id completions) 230 + | Error (Toplevel_api_gen.InternalError msg) -> 231 + send_message (Msg.EvalError { cell_id; message = msg })) 232 + 233 + | Msg.TypeAt { cell_id; env_id; source; position } -> 234 + let pos = position_of_int position in 235 + Rpc_lwt.T.get (M.type_enclosing env_id None [] false source pos) >|= fun result -> 236 + (match result with 237 + | Ok types -> 238 + send_message (types_of_result cell_id types) 239 + | Error (Toplevel_api_gen.InternalError msg) -> 240 + send_message (Msg.EvalError { cell_id; message = msg })) 241 + 242 + | Msg.Errors { cell_id; env_id; source } -> 243 + Rpc_lwt.T.get (M.query_errors env_id None [] false source) >|= fun result -> 244 + (match result with 245 + | Ok errors -> 246 + send_message (errors_of_result cell_id errors) 247 + | Error (Toplevel_api_gen.InternalError msg) -> 248 + send_message (Msg.EvalError { cell_id; message = msg })) 249 + 250 + | Msg.CreateEnv { env_id } -> 251 + M.create_env env_id >|= fun result -> 252 + (match result with 253 + | Ok () -> send_message (Msg.EnvCreated { env_id }) 254 + | Error (Toplevel_api_gen.InternalError msg) -> 255 + send_message (Msg.InitError { message = msg })) 256 + 257 + | Msg.DestroyEnv { env_id } -> 258 + M.destroy_env env_id >|= fun result -> 259 + (match result with 260 + | Ok () -> send_message (Msg.EnvDestroyed { env_id }) 261 + | Error (Toplevel_api_gen.InternalError msg) -> 262 + send_message (Msg.InitError { message = msg })) 90 263 91 264 let run () = 92 - (* Here we bind the server stub functions to the implementations *) 93 265 let open Js_of_ocaml in 94 - let open M in 95 266 try 96 - Console.console##log (Js.string "Starting worker..."); 267 + Console.console##log (Js.string "Starting worker (message protocol)..."); 97 268 98 - let _ = test () in 99 269 Logs.set_reporter (Logs_browser.console_reporter ()); 100 270 Logs.set_level (Some Logs.Debug); 101 - Server.init (Impl.IdlM.T.lift init); 102 - Server.create_env (Impl.IdlM.T.lift create_env); 103 - Server.destroy_env (Impl.IdlM.T.lift destroy_env); 104 - Server.list_envs (Impl.IdlM.T.lift list_envs); 105 - Server.setup (Impl.IdlM.T.lift setup); 106 - Server.exec execute; 107 - Server.complete_prefix complete_prefix; 108 - Server.query_errors query_errors; 109 - Server.type_enclosing type_enclosing; 110 - Server.exec_toplevel exec_toplevel; 111 - let rpc_fn = Impl.IdlM.server Server.implementation in 271 + 112 272 Js_of_ocaml.Worker.set_onmessage (fun x -> 113 273 let s = Js_of_ocaml.Js.to_string x in 114 274 Jslib.log "Worker received: %s" s; 115 - Lwt.async (fun () -> server rpc_fn s)); 116 - Console.console##log (Js.string "All finished") 275 + try 276 + let msg = Msg.client_msg_of_string s in 277 + Lwt.async (fun () -> handle_message msg) 278 + with e -> 279 + Jslib.log "Error parsing message: %s" (Printexc.to_string e); 280 + send_message (Msg.InitError { message = Printexc.to_string e })); 281 + 282 + Console.console##log (Js.string "Worker ready") 117 283 with e -> 118 284 Console.console##log (Js.string ("Exception: " ^ Printexc.to_string e))
+651 -11
test/node/node_directive_test.expected
··· 2 2 3 3 node_directive_test.js: [INFO] init() 4 4 Initializing findlib 5 - Parsed uri: lib/stdlib-shims/META 5 + Loaded findlib_index findlib_index: 10 META files, 0 universes 6 + Parsed uri: ./lib/stdlib-shims/META 6 7 Reading library: stdlib-shims 7 8 Number of children: 0 8 - Parsed uri: lib/sexplib0/META 9 + Parsed uri: ./lib/sexplib0/META 9 10 Reading library: sexplib0 10 11 Number of children: 0 11 - Parsed uri: lib/ppxlib/META 12 + Parsed uri: ./lib/ppxlib/META 12 13 Reading library: ppxlib 13 14 Number of children: 11 14 15 Found child: __private__ ··· 47 48 Found child: traverse_builtins 48 49 Reading library: ppxlib.traverse_builtins 49 50 Number of children: 0 50 - Parsed uri: lib/ppx_deriving/META 51 + Parsed uri: ./lib/ppx_deriving/META 51 52 Reading library: ppx_deriving 52 53 Number of children: 12 53 54 Found child: api ··· 86 87 Found child: std 87 88 Reading library: ppx_deriving.std 88 89 Number of children: 0 89 - Parsed uri: lib/ppx_derivers/META 90 + Parsed uri: ./lib/ppx_derivers/META 90 91 Reading library: ppx_derivers 91 92 Number of children: 0 92 - Parsed uri: lib/ocaml_intrinsics_kernel/META 93 + Parsed uri: ./lib/ocaml_intrinsics_kernel/META 93 94 Reading library: ocaml_intrinsics_kernel 94 95 Number of children: 0 95 - Parsed uri: lib/ocaml/stdlib/META 96 + Parsed uri: ./lib/ocaml/stdlib/META 96 97 Reading library: stdlib 97 98 Number of children: 0 98 - Parsed uri: lib/ocaml/compiler-libs/META 99 + Parsed uri: ./lib/ocaml/compiler-libs/META 99 100 Reading library: compiler-libs 100 101 Number of children: 5 101 102 Found child: common ··· 113 114 Found child: native-toplevel 114 115 Reading library: compiler-libs.native-toplevel 115 116 Number of children: 0 116 - Parsed uri: lib/ocaml-compiler-libs/META 117 + Parsed uri: ./lib/ocaml-compiler-libs/META 117 118 Reading library: ocaml-compiler-libs 118 119 Number of children: 5 119 120 Found child: bytecomp ··· 131 132 Found child: toplevel 132 133 Reading library: ocaml-compiler-libs.toplevel 133 134 Number of children: 0 134 - Parsed uri: lib/base/META 135 + Parsed uri: ./lib/base/META 135 136 Reading library: base 136 137 Number of children: 3 137 138 Found child: base_internalhash_types ··· 144 145 Reading library: base.shadow_stdlib 145 146 Number of children: 0 146 147 node_directive_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/ocaml/ 147 - node_directive_test.js: [INFO] toplevel modules: CamlinternalFormat, CamlinternalLazy, CamlinternalFormatBasics, CamlinternalMod, Std_exit, Stdlib, CamlinternalOO 148 + node_directive_test.js: [INFO] toplevel modules: Std_exit, CamlinternalFormatBasics, CamlinternalLazy, CamlinternalMod, Stdlib, CamlinternalOO, CamlinternalFormat 148 149 node_directive_test.js: [INFO] init() finished 149 150 node_directive_test.js: [INFO] setup() for env default... 151 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=false, runtime_values_count=0) 150 152 node_directive_test.js: [INFO] Fetching stdlib__Format.cmi 151 153 152 154 node_directive_test.js: [INFO] Fetching stdlib__Sys.cmi ··· 154 156 error while evaluating #enable "pretty";; 155 157 error while evaluating #disable "shortvar";; 156 158 node_directive_test.js: [INFO] Setup complete 159 + node_directive_test.js: [INFO] [ENV] Env.diff found 92 new idents for default 160 + node_directive_test.js: [INFO] [ENV] Capturing 92 new bindings for env default 161 + >> Fatal error: Continuation_already_taken unbound at toplevel 162 + node_directive_test.js: [INFO] [ENV] could not capture Continuation_already_taken: Misc.Fatal_error 163 + >> Fatal error: Division_by_zero unbound at toplevel 164 + node_directive_test.js: [INFO] [ENV] could not capture Division_by_zero: Misc.Fatal_error 165 + >> Fatal error: Failure unbound at toplevel 166 + node_directive_test.js: [INFO] [ENV] could not capture Failure: Misc.Fatal_error 167 + >> Fatal error: Match_failure unbound at toplevel 168 + node_directive_test.js: [INFO] [ENV] could not capture Match_failure: Misc.Fatal_error 169 + >> Fatal error: Invalid_argument unbound at toplevel 170 + node_directive_test.js: [INFO] [ENV] could not capture Invalid_argument: Misc.Fatal_error 171 + >> Fatal error: End_of_file unbound at toplevel 172 + node_directive_test.js: [INFO] [ENV] could not capture End_of_file: Misc.Fatal_error 173 + >> Fatal error: Assert_failure unbound at toplevel 174 + node_directive_test.js: [INFO] [ENV] could not capture Assert_failure: Misc.Fatal_error 175 + >> Fatal error: Not_found unbound at toplevel 176 + node_directive_test.js: [INFO] [ENV] could not capture Not_found: Misc.Fatal_error 177 + >> Fatal error: Out_of_memory unbound at toplevel 178 + node_directive_test.js: [INFO] [ENV] could not capture Out_of_memory: Misc.Fatal_error 179 + >> Fatal error: Sys_blocked_io unbound at toplevel 180 + node_directive_test.js: [INFO] [ENV] could not capture Sys_blocked_io: Misc.Fatal_error 181 + >> Fatal error: Undefined_recursive_module unbound at toplevel 182 + node_directive_test.js: [INFO] [ENV] could not capture Undefined_recursive_module: Misc.Fatal_error 183 + >> Fatal error: Sys_error unbound at toplevel 184 + node_directive_test.js: [INFO] [ENV] could not capture Sys_error: Misc.Fatal_error 185 + >> Fatal error: Stack_overflow unbound at toplevel 186 + node_directive_test.js: [INFO] [ENV] could not capture Stack_overflow: Misc.Fatal_error 187 + >> Fatal error: CamlinternalFormat unbound at toplevel 188 + node_directive_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 189 + >> Fatal error: CamlinternalLazy unbound at toplevel 190 + node_directive_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 191 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 192 + node_directive_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 193 + >> Fatal error: CamlinternalOO unbound at toplevel 194 + node_directive_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 195 + >> Fatal error: Stdlib unbound at toplevel 196 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 197 + >> Fatal error: Std_exit unbound at toplevel 198 + node_directive_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 199 + >> Fatal error: CamlinternalMod unbound at toplevel 200 + node_directive_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 201 + >> Fatal error: CamlinternalFormat unbound at toplevel 202 + node_directive_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 203 + >> Fatal error: CamlinternalLazy unbound at toplevel 204 + node_directive_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 205 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 206 + node_directive_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 207 + >> Fatal error: CamlinternalOO unbound at toplevel 208 + node_directive_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 209 + >> Fatal error: Stdlib unbound at toplevel 210 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 211 + >> Fatal error: Std_exit unbound at toplevel 212 + node_directive_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 213 + >> Fatal error: CamlinternalMod unbound at toplevel 214 + node_directive_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 215 + >> Fatal error: Stdlib__Array unbound at toplevel 216 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Array: Misc.Fatal_error 217 + >> Fatal error: Stdlib__Atomic unbound at toplevel 218 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Atomic: Misc.Fatal_error 219 + >> Fatal error: Stdlib__ArrayLabels unbound at toplevel 220 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__ArrayLabels: Misc.Fatal_error 221 + >> Fatal error: Stdlib__Bool unbound at toplevel 222 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Bool: Misc.Fatal_error 223 + >> Fatal error: Stdlib__Bytes unbound at toplevel 224 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Bytes: Misc.Fatal_error 225 + >> Fatal error: Stdlib__Buffer unbound at toplevel 226 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Buffer: Misc.Fatal_error 227 + >> Fatal error: Stdlib__Bigarray unbound at toplevel 228 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Bigarray: Misc.Fatal_error 229 + >> Fatal error: Stdlib__Arg unbound at toplevel 230 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Arg: Misc.Fatal_error 231 + >> Fatal error: Stdlib__Callback unbound at toplevel 232 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Callback: Misc.Fatal_error 233 + >> Fatal error: Stdlib__Complex unbound at toplevel 234 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Complex: Misc.Fatal_error 235 + >> Fatal error: Stdlib__Char unbound at toplevel 236 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Char: Misc.Fatal_error 237 + >> Fatal error: Stdlib__Digest unbound at toplevel 238 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Digest: Misc.Fatal_error 239 + >> Fatal error: Stdlib__Dynarray unbound at toplevel 240 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Dynarray: Misc.Fatal_error 241 + >> Fatal error: Stdlib__Domain unbound at toplevel 242 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Domain: Misc.Fatal_error 243 + >> Fatal error: Stdlib__Condition unbound at toplevel 244 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Condition: Misc.Fatal_error 245 + >> Fatal error: Stdlib__Either unbound at toplevel 246 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Either: Misc.Fatal_error 247 + >> Fatal error: Stdlib__Filename unbound at toplevel 248 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Filename: Misc.Fatal_error 249 + >> Fatal error: Stdlib__Ephemeron unbound at toplevel 250 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Ephemeron: Misc.Fatal_error 251 + >> Fatal error: Stdlib__Format unbound at toplevel 252 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 253 + >> Fatal error: Stdlib__Gc unbound at toplevel 254 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Gc: Misc.Fatal_error 255 + >> Fatal error: Stdlib__Fun unbound at toplevel 256 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Fun: Misc.Fatal_error 257 + >> Fatal error: Stdlib__Float unbound at toplevel 258 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Float: Misc.Fatal_error 259 + >> Fatal error: Stdlib__Effect unbound at toplevel 260 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Effect: Misc.Fatal_error 261 + >> Fatal error: Stdlib__BytesLabels unbound at toplevel 262 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__BytesLabels: Misc.Fatal_error 263 + >> Fatal error: Stdlib__Iarray unbound at toplevel 264 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Iarray: Misc.Fatal_error 265 + >> Fatal error: Stdlib__Int unbound at toplevel 266 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Int: Misc.Fatal_error 267 + >> Fatal error: Stdlib__In_channel unbound at toplevel 268 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__In_channel: Misc.Fatal_error 269 + >> Fatal error: Stdlib__Int64 unbound at toplevel 270 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Int64: Misc.Fatal_error 271 + >> Fatal error: Stdlib__Lexing unbound at toplevel 272 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Lexing: Misc.Fatal_error 273 + >> Fatal error: Stdlib__Lazy unbound at toplevel 274 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Lazy: Misc.Fatal_error 275 + >> Fatal error: Stdlib__Int32 unbound at toplevel 276 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Int32: Misc.Fatal_error 277 + >> Fatal error: Stdlib__ListLabels unbound at toplevel 278 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__ListLabels: Misc.Fatal_error 279 + >> Fatal error: Stdlib__Marshal unbound at toplevel 280 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Marshal: Misc.Fatal_error 281 + >> Fatal error: Stdlib__Map unbound at toplevel 282 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Map: Misc.Fatal_error 283 + >> Fatal error: Stdlib__Mutex unbound at toplevel 284 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Mutex: Misc.Fatal_error 285 + >> Fatal error: Stdlib__Obj unbound at toplevel 286 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Obj: Misc.Fatal_error 287 + >> Fatal error: Stdlib__Nativeint unbound at toplevel 288 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Nativeint: Misc.Fatal_error 289 + >> Fatal error: Stdlib__MoreLabels unbound at toplevel 290 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__MoreLabels: Misc.Fatal_error 291 + >> Fatal error: Stdlib__List unbound at toplevel 292 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__List: Misc.Fatal_error 293 + >> Fatal error: Stdlib__Option unbound at toplevel 294 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Option: Misc.Fatal_error 295 + >> Fatal error: Stdlib__Pair unbound at toplevel 296 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Pair: Misc.Fatal_error 297 + >> Fatal error: Stdlib__Out_channel unbound at toplevel 298 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Out_channel: Misc.Fatal_error 299 + >> Fatal error: Stdlib__Pqueue unbound at toplevel 300 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Pqueue: Misc.Fatal_error 301 + >> Fatal error: Stdlib__Printf unbound at toplevel 302 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Printf: Misc.Fatal_error 303 + >> Fatal error: Stdlib__Printexc unbound at toplevel 304 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Printexc: Misc.Fatal_error 305 + >> Fatal error: Stdlib__Parsing unbound at toplevel 306 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Parsing: Misc.Fatal_error 307 + >> Fatal error: Stdlib__Random unbound at toplevel 308 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Random: Misc.Fatal_error 309 + >> Fatal error: Stdlib__Result unbound at toplevel 310 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Result: Misc.Fatal_error 311 + >> Fatal error: Stdlib__Repr unbound at toplevel 312 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Repr: Misc.Fatal_error 313 + >> Fatal error: Stdlib__Semaphore unbound at toplevel 314 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Semaphore: Misc.Fatal_error 315 + >> Fatal error: Stdlib__Set unbound at toplevel 316 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Set: Misc.Fatal_error 317 + >> Fatal error: Stdlib__Seq unbound at toplevel 318 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Seq: Misc.Fatal_error 319 + >> Fatal error: Stdlib__Scanf unbound at toplevel 320 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Scanf: Misc.Fatal_error 321 + >> Fatal error: Stdlib__Queue unbound at toplevel 322 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Queue: Misc.Fatal_error 323 + >> Fatal error: Stdlib__StdLabels unbound at toplevel 324 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__StdLabels: Misc.Fatal_error 325 + >> Fatal error: Stdlib__StringLabels unbound at toplevel 326 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__StringLabels: Misc.Fatal_error 327 + >> Fatal error: Stdlib__String unbound at toplevel 328 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__String: Misc.Fatal_error 329 + >> Fatal error: Stdlib__Type unbound at toplevel 330 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Type: Misc.Fatal_error 331 + >> Fatal error: Stdlib__Weak unbound at toplevel 332 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Weak: Misc.Fatal_error 333 + >> Fatal error: Stdlib__Unit unbound at toplevel 334 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Unit: Misc.Fatal_error 335 + >> Fatal error: Stdlib__Uchar unbound at toplevel 336 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Uchar: Misc.Fatal_error 337 + >> Fatal error: Stdlib__Sys unbound at toplevel 338 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 339 + >> Fatal error: Stdlib__Stack unbound at toplevel 340 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Stack: Misc.Fatal_error 341 + >> Fatal error: Stdlib__Oo unbound at toplevel 342 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Oo: Misc.Fatal_error 343 + >> Fatal error: Stdlib__Hashtbl unbound at toplevel 344 + node_directive_test.js: [INFO] [ENV] could not capture Stdlib__Hashtbl: Misc.Fatal_error 157 345 node_directive_test.js: [INFO] setup() finished for env default 158 346 --- Section 1: Basic Execution --- 347 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=0) 348 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 159 349 [PASS] basic_eval: # 1 + 2;; 160 350 - : int = 3 351 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=0) 352 + node_directive_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 353 + node_directive_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 354 + node_directive_test.js: [INFO] [ENV] captured x 161 355 [PASS] let_binding: # let x = 42;; 162 356 val x : int = 42 163 357 164 358 --- Section 2: #show Directives --- 359 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=1) 360 + node_directive_test.js: [INFO] [ENV] Restoring 1 runtime values for env default 361 + node_directive_test.js: [INFO] [ENV] setvalue x 362 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 363 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=1) 364 + node_directive_test.js: [INFO] [ENV] Restoring 1 runtime values for env default 365 + node_directive_test.js: [INFO] [ENV] setvalue x 366 + node_directive_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 367 + node_directive_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 368 + node_directive_test.js: [INFO] [ENV] captured origin 369 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=2) 370 + node_directive_test.js: [INFO] [ENV] Restoring 2 runtime values for env default 371 + node_directive_test.js: [INFO] [ENV] setvalue origin 372 + node_directive_test.js: [INFO] [ENV] setvalue x 373 + node_directive_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 374 + node_directive_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 375 + node_directive_test.js: [INFO] [ENV] captured MyMod/561 376 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=3) 377 + node_directive_test.js: [INFO] [ENV] Restoring 3 runtime values for env default 378 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 379 + node_directive_test.js: [INFO] [ENV] setvalue origin 380 + node_directive_test.js: [INFO] [ENV] setvalue x 381 + node_directive_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 382 + node_directive_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 383 + node_directive_test.js: [INFO] [ENV] captured My_error/562 384 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=4) 385 + node_directive_test.js: [INFO] [ENV] Restoring 4 runtime values for env default 386 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 387 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 388 + node_directive_test.js: [INFO] [ENV] setvalue origin 389 + node_directive_test.js: [INFO] [ENV] setvalue x 390 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 165 391 [PASS] show_type_point: # #show point;; 166 392 type point = { x : float; y : float; } 393 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=4) 394 + node_directive_test.js: [INFO] [ENV] Restoring 4 runtime values for env default 395 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 396 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 397 + node_directive_test.js: [INFO] [ENV] setvalue origin 398 + node_directive_test.js: [INFO] [ENV] setvalue x 399 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 167 400 [PASS] show_val_origin: # #show origin;; 168 401 val origin : point 402 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=4) 403 + node_directive_test.js: [INFO] [ENV] Restoring 4 runtime values for env default 404 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 405 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 406 + node_directive_test.js: [INFO] [ENV] setvalue origin 407 + node_directive_test.js: [INFO] [ENV] setvalue x 408 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 169 409 [PASS] show_module: # #show MyMod;; 170 410 module MyMod : sig type t = int val zero : int end 411 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=4) 412 + node_directive_test.js: [INFO] [ENV] Restoring 4 runtime values for env default 413 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 414 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 415 + node_directive_test.js: [INFO] [ENV] setvalue origin 416 + node_directive_test.js: [INFO] [ENV] setvalue x 417 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 171 418 [PASS] show_exception: # #show My_error;; 172 419 exception My_error of string 420 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=4) 421 + node_directive_test.js: [INFO] [ENV] Restoring 4 runtime values for env default 422 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 423 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 424 + node_directive_test.js: [INFO] [ENV] setvalue origin 425 + node_directive_test.js: [INFO] [ENV] setvalue x 426 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 173 427 [PASS] show_type_list: # #show_type list;; 174 428 type 'a list = [] | (::) of 'a * 'a list 429 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=4) 430 + node_directive_test.js: [INFO] [ENV] Restoring 4 runtime values for env default 431 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 432 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 433 + node_directive_test.js: [INFO] [ENV] setvalue origin 434 + node_directive_test.js: [INFO] [ENV] setvalue x 175 435 node_directive_test.js: [INFO] Fetching stdlib__List.cmi 176 436 437 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 177 438 [PASS] show_val_list_map: # #show_val List.map;; 178 439 val map : ('a -> 'b) -> 'a list -> 'b list 440 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=4) 441 + node_directive_test.js: [INFO] [ENV] Restoring 4 runtime values for env default 442 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 443 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 444 + node_directive_test.js: [INFO] [ENV] setvalue origin 445 + node_directive_test.js: [INFO] [ENV] setvalue x 446 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 179 447 [PASS] show_module_list: # #show_module List;; 180 448 module List : 181 449 sig ··· 255 523 val to_seq : 'a list -> 'a Seq.t 256 524 val of_seq : 'a Seq.t -> 'a list 257 525 end 526 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=4) 527 + node_directive_test.js: [INFO] [ENV] Restoring 4 runtime values for env default 528 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 529 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 530 + node_directive_test.js: [INFO] [ENV] setvalue origin 531 + node_directive_test.js: [INFO] [ENV] setvalue x 532 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 258 533 [PASS] show_exception_not_found: # #show_exception Not_found;; 259 534 exception Not_found 260 535 261 536 --- Section 3: #print_depth and #print_length --- 537 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=4) 538 + node_directive_test.js: [INFO] [ENV] Restoring 4 runtime values for env default 539 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 540 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 541 + node_directive_test.js: [INFO] [ENV] setvalue origin 542 + node_directive_test.js: [INFO] [ENV] setvalue x 543 + node_directive_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 544 + node_directive_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 545 + node_directive_test.js: [INFO] [ENV] captured nested 546 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=5) 547 + node_directive_test.js: [INFO] [ENV] Restoring 5 runtime values for env default 548 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 549 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 550 + node_directive_test.js: [INFO] [ENV] setvalue nested 551 + node_directive_test.js: [INFO] [ENV] setvalue origin 552 + node_directive_test.js: [INFO] [ENV] setvalue x 553 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 554 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=5) 555 + node_directive_test.js: [INFO] [ENV] Restoring 5 runtime values for env default 556 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 557 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 558 + node_directive_test.js: [INFO] [ENV] setvalue nested 559 + node_directive_test.js: [INFO] [ENV] setvalue origin 560 + node_directive_test.js: [INFO] [ENV] setvalue x 561 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 262 562 [PASS] print_depth_truncated: # nested;; 263 563 - : int list list list list = [[[...]]] 564 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=5) 565 + node_directive_test.js: [INFO] [ENV] Restoring 5 runtime values for env default 566 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 567 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 568 + node_directive_test.js: [INFO] [ENV] setvalue nested 569 + node_directive_test.js: [INFO] [ENV] setvalue origin 570 + node_directive_test.js: [INFO] [ENV] setvalue x 571 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 572 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=5) 573 + node_directive_test.js: [INFO] [ENV] Restoring 5 runtime values for env default 574 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 575 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 576 + node_directive_test.js: [INFO] [ENV] setvalue nested 577 + node_directive_test.js: [INFO] [ENV] setvalue origin 578 + node_directive_test.js: [INFO] [ENV] setvalue x 579 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 264 580 [PASS] print_depth_full: # nested;; 265 581 - : int list list list list = [[[[1; 2; 3]]]] 582 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=5) 583 + node_directive_test.js: [INFO] [ENV] Restoring 5 runtime values for env default 584 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 585 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 586 + node_directive_test.js: [INFO] [ENV] setvalue nested 587 + node_directive_test.js: [INFO] [ENV] setvalue origin 588 + node_directive_test.js: [INFO] [ENV] setvalue x 589 + node_directive_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 590 + node_directive_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 591 + node_directive_test.js: [INFO] [ENV] captured long_list 592 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=6) 593 + node_directive_test.js: [INFO] [ENV] Restoring 6 runtime values for env default 594 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 595 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 596 + node_directive_test.js: [INFO] [ENV] setvalue long_list 597 + node_directive_test.js: [INFO] [ENV] setvalue nested 598 + node_directive_test.js: [INFO] [ENV] setvalue origin 599 + node_directive_test.js: [INFO] [ENV] setvalue x 600 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 601 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=6) 602 + node_directive_test.js: [INFO] [ENV] Restoring 6 runtime values for env default 603 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 604 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 605 + node_directive_test.js: [INFO] [ENV] setvalue long_list 606 + node_directive_test.js: [INFO] [ENV] setvalue nested 607 + node_directive_test.js: [INFO] [ENV] setvalue origin 608 + node_directive_test.js: [INFO] [ENV] setvalue x 609 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 266 610 [PASS] print_length_truncated: # long_list;; 267 611 - : int list = [1; 2; ...] 612 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=6) 613 + node_directive_test.js: [INFO] [ENV] Restoring 6 runtime values for env default 614 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 615 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 616 + node_directive_test.js: [INFO] [ENV] setvalue long_list 617 + node_directive_test.js: [INFO] [ENV] setvalue nested 618 + node_directive_test.js: [INFO] [ENV] setvalue origin 619 + node_directive_test.js: [INFO] [ENV] setvalue x 620 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 621 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=6) 622 + node_directive_test.js: [INFO] [ENV] Restoring 6 runtime values for env default 623 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 624 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 625 + node_directive_test.js: [INFO] [ENV] setvalue long_list 626 + node_directive_test.js: [INFO] [ENV] setvalue nested 627 + node_directive_test.js: [INFO] [ENV] setvalue origin 628 + node_directive_test.js: [INFO] [ENV] setvalue x 629 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 268 630 [PASS] print_length_full: # long_list;; 269 631 - : int list = [1; 2; 3; 4; 5; 6; 7; 8; 9; 10] 270 632 271 633 --- Section 4: #install_printer / #remove_printer --- 634 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=6) 635 + node_directive_test.js: [INFO] [ENV] Restoring 6 runtime values for env default 636 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 637 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 638 + node_directive_test.js: [INFO] [ENV] setvalue long_list 639 + node_directive_test.js: [INFO] [ENV] setvalue nested 640 + node_directive_test.js: [INFO] [ENV] setvalue origin 641 + node_directive_test.js: [INFO] [ENV] setvalue x 642 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 643 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=6) 644 + node_directive_test.js: [INFO] [ENV] Restoring 6 runtime values for env default 645 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 646 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 647 + node_directive_test.js: [INFO] [ENV] setvalue long_list 648 + node_directive_test.js: [INFO] [ENV] setvalue nested 649 + node_directive_test.js: [INFO] [ENV] setvalue origin 650 + node_directive_test.js: [INFO] [ENV] setvalue x 651 + node_directive_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 652 + node_directive_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 653 + node_directive_test.js: [INFO] [ENV] captured pp_color 654 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 655 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 656 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 657 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 658 + node_directive_test.js: [INFO] [ENV] setvalue long_list 659 + node_directive_test.js: [INFO] [ENV] setvalue nested 660 + node_directive_test.js: [INFO] [ENV] setvalue origin 661 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 662 + node_directive_test.js: [INFO] [ENV] setvalue x 663 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 664 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 665 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 666 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 667 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 668 + node_directive_test.js: [INFO] [ENV] setvalue long_list 669 + node_directive_test.js: [INFO] [ENV] setvalue nested 670 + node_directive_test.js: [INFO] [ENV] setvalue origin 671 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 672 + node_directive_test.js: [INFO] [ENV] setvalue x 673 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 272 674 [PASS] install_printer: # Red;; 273 675 - : color = <color:red> 676 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 677 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 678 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 679 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 680 + node_directive_test.js: [INFO] [ENV] setvalue long_list 681 + node_directive_test.js: [INFO] [ENV] setvalue nested 682 + node_directive_test.js: [INFO] [ENV] setvalue origin 683 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 684 + node_directive_test.js: [INFO] [ENV] setvalue x 685 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 686 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 687 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 688 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 689 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 690 + node_directive_test.js: [INFO] [ENV] setvalue long_list 691 + node_directive_test.js: [INFO] [ENV] setvalue nested 692 + node_directive_test.js: [INFO] [ENV] setvalue origin 693 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 694 + node_directive_test.js: [INFO] [ENV] setvalue x 695 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 274 696 [PASS] remove_printer: # Red;; 275 697 - : color = Red 276 698 277 699 --- Section 5: #warnings / #warn_error --- 700 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 701 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 702 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 703 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 704 + node_directive_test.js: [INFO] [ENV] setvalue long_list 705 + node_directive_test.js: [INFO] [ENV] setvalue nested 706 + node_directive_test.js: [INFO] [ENV] setvalue origin 707 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 708 + node_directive_test.js: [INFO] [ENV] setvalue x 709 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 710 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 711 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 712 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 713 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 714 + node_directive_test.js: [INFO] [ENV] setvalue long_list 715 + node_directive_test.js: [INFO] [ENV] setvalue nested 716 + node_directive_test.js: [INFO] [ENV] setvalue origin 717 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 718 + node_directive_test.js: [INFO] [ENV] setvalue x 719 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 278 720 [PASS] warnings_disabled: # let _ = let unused = 1 in 2;; 279 721 - : int = 2 722 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 723 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 724 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 725 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 726 + node_directive_test.js: [INFO] [ENV] setvalue long_list 727 + node_directive_test.js: [INFO] [ENV] setvalue nested 728 + node_directive_test.js: [INFO] [ENV] setvalue origin 729 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 730 + node_directive_test.js: [INFO] [ENV] setvalue x 731 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 732 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 733 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 734 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 735 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 736 + node_directive_test.js: [INFO] [ENV] setvalue long_list 737 + node_directive_test.js: [INFO] [ENV] setvalue nested 738 + node_directive_test.js: [INFO] [ENV] setvalue origin 739 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 740 + node_directive_test.js: [INFO] [ENV] setvalue x 280 741 Line 1, characters 12-19: 281 742 Warning 26 [unused-var]: unused variable unused2. 743 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 282 744 [PASS] warnings_enabled: # let _ = let unused2 = 1 in 2;; 283 745 - : int = 2 746 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 747 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 748 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 749 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 750 + node_directive_test.js: [INFO] [ENV] setvalue long_list 751 + node_directive_test.js: [INFO] [ENV] setvalue nested 752 + node_directive_test.js: [INFO] [ENV] setvalue origin 753 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 754 + node_directive_test.js: [INFO] [ENV] setvalue x 755 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 756 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 757 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 758 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 759 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 760 + node_directive_test.js: [INFO] [ENV] setvalue long_list 761 + node_directive_test.js: [INFO] [ENV] setvalue nested 762 + node_directive_test.js: [INFO] [ENV] setvalue origin 763 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 764 + node_directive_test.js: [INFO] [ENV] setvalue x 284 765 285 766 Line 1, characters 12-19: 286 767 Error (warning 26 [unused-var]): unused variable unused3. 768 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 287 769 [FAIL] warn_error: # let _ = let unused3 = 1 in 2;; 770 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 771 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 772 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 773 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 774 + node_directive_test.js: [INFO] [ENV] setvalue long_list 775 + node_directive_test.js: [INFO] [ENV] setvalue nested 776 + node_directive_test.js: [INFO] [ENV] setvalue origin 777 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 778 + node_directive_test.js: [INFO] [ENV] setvalue x 779 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 288 780 289 781 --- Section 6: #rectypes --- 782 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 783 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 784 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 785 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 786 + node_directive_test.js: [INFO] [ENV] setvalue long_list 787 + node_directive_test.js: [INFO] [ENV] setvalue nested 788 + node_directive_test.js: [INFO] [ENV] setvalue origin 789 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 790 + node_directive_test.js: [INFO] [ENV] setvalue x 290 791 291 792 Line 1, characters 0-23: 292 793 Error: The type abbreviation t is cyclic: 293 794 'a t = 'a t -> int, 294 795 'a t -> int contains 'a t 796 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 295 797 [FAIL] rectypes_before: # type 'a t = 'a t -> int;; 798 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 799 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 800 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 801 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 802 + node_directive_test.js: [INFO] [ENV] setvalue long_list 803 + node_directive_test.js: [INFO] [ENV] setvalue nested 804 + node_directive_test.js: [INFO] [ENV] setvalue origin 805 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 806 + node_directive_test.js: [INFO] [ENV] setvalue x 807 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 808 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 809 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 810 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 811 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 812 + node_directive_test.js: [INFO] [ENV] setvalue long_list 813 + node_directive_test.js: [INFO] [ENV] setvalue nested 814 + node_directive_test.js: [INFO] [ENV] setvalue origin 815 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 816 + node_directive_test.js: [INFO] [ENV] setvalue x 817 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 296 818 [PASS] rectypes_after: # type 'a u = 'a u -> int;; 297 819 type 'a u = 'a u -> int 298 820 299 821 --- Section 7: #directory --- 822 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 823 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 824 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 825 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 826 + node_directive_test.js: [INFO] [ENV] setvalue long_list 827 + node_directive_test.js: [INFO] [ENV] setvalue nested 828 + node_directive_test.js: [INFO] [ENV] setvalue origin 829 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 830 + node_directive_test.js: [INFO] [ENV] setvalue x 831 + node_directive_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 832 + node_directive_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 833 + >> Fatal error: Test_ocamlfind unbound at toplevel 834 + node_directive_test.js: [INFO] [ENV] could not capture Test_ocamlfind: Misc.Fatal_error 300 835 [PASS] directory_add: (no error) 836 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 837 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 838 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 839 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 840 + node_directive_test.js: [INFO] [ENV] setvalue long_list 841 + node_directive_test.js: [INFO] [ENV] setvalue nested 842 + node_directive_test.js: [INFO] [ENV] setvalue origin 843 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 844 + node_directive_test.js: [INFO] [ENV] setvalue x 845 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 301 846 [PASS] directory_remove: (no error) 302 847 303 848 --- Section 8: #help --- 849 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 850 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 851 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 852 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 853 + node_directive_test.js: [INFO] [ENV] setvalue long_list 854 + node_directive_test.js: [INFO] [ENV] setvalue nested 855 + node_directive_test.js: [INFO] [ENV] setvalue origin 856 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 857 + node_directive_test.js: [INFO] [ENV] setvalue x 858 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 304 859 [PASS] help: # #help;; 305 860 General 306 861 #help 307 862 Prints a list of all available directives, with corresponding argume... 308 863 309 864 --- Section 9: #labels / #principal --- 865 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 866 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 867 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 868 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 869 + node_directive_test.js: [INFO] [ENV] setvalue long_list 870 + node_directive_test.js: [INFO] [ENV] setvalue nested 871 + node_directive_test.js: [INFO] [ENV] setvalue origin 872 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 873 + node_directive_test.js: [INFO] [ENV] setvalue x 874 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 310 875 [PASS] labels_true: (no error) 876 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 877 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 878 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 879 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 880 + node_directive_test.js: [INFO] [ENV] setvalue long_list 881 + node_directive_test.js: [INFO] [ENV] setvalue nested 882 + node_directive_test.js: [INFO] [ENV] setvalue origin 883 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 884 + node_directive_test.js: [INFO] [ENV] setvalue x 885 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 311 886 [PASS] labels_false: (no error) 887 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 888 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 889 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 890 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 891 + node_directive_test.js: [INFO] [ENV] setvalue long_list 892 + node_directive_test.js: [INFO] [ENV] setvalue nested 893 + node_directive_test.js: [INFO] [ENV] setvalue origin 894 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 895 + node_directive_test.js: [INFO] [ENV] setvalue x 896 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 312 897 [PASS] principal_true: (no error) 898 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 899 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 900 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 901 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 902 + node_directive_test.js: [INFO] [ENV] setvalue long_list 903 + node_directive_test.js: [INFO] [ENV] setvalue nested 904 + node_directive_test.js: [INFO] [ENV] setvalue origin 905 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 906 + node_directive_test.js: [INFO] [ENV] setvalue x 907 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 313 908 [PASS] principal_false: (no error) 314 909 315 910 --- Section 10: Error Cases --- 911 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 912 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 913 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 914 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 915 + node_directive_test.js: [INFO] [ENV] setvalue long_list 916 + node_directive_test.js: [INFO] [ENV] setvalue nested 917 + node_directive_test.js: [INFO] [ENV] setvalue origin 918 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 919 + node_directive_test.js: [INFO] [ENV] setvalue x 920 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 316 921 [PASS] unknown_directive: # #unknown_directive;; 317 922 Unknown directive unknown_directive. 923 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 924 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 925 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 926 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 927 + node_directive_test.js: [INFO] [ENV] setvalue long_list 928 + node_directive_test.js: [INFO] [ENV] setvalue nested 929 + node_directive_test.js: [INFO] [ENV] setvalue origin 930 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 931 + node_directive_test.js: [INFO] [ENV] setvalue x 932 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 318 933 [PASS] show_nonexistent: # #show nonexistent_value;; 319 934 Unknown element. 320 935 321 936 --- Section 11: Classes --- 937 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=7) 938 + node_directive_test.js: [INFO] [ENV] Restoring 7 runtime values for env default 939 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 940 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 941 + node_directive_test.js: [INFO] [ENV] setvalue long_list 942 + node_directive_test.js: [INFO] [ENV] setvalue nested 943 + node_directive_test.js: [INFO] [ENV] setvalue origin 944 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 945 + node_directive_test.js: [INFO] [ENV] setvalue x 946 + node_directive_test.js: [INFO] [ENV] Env.diff found 3 new idents for default 947 + node_directive_test.js: [INFO] [ENV] Capturing 3 new bindings for env default 948 + node_directive_test.js: [INFO] [ENV] captured counter/816 949 + node_directive_test.js: [INFO] [ENV] captured counter/816 950 + node_directive_test.js: [INFO] [ENV] captured counter/816 951 + node_directive_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=8) 952 + node_directive_test.js: [INFO] [ENV] Restoring 8 runtime values for env default 953 + node_directive_test.js: [INFO] [ENV] setvalue MyMod/561 954 + node_directive_test.js: [INFO] [ENV] setvalue My_error/562 955 + node_directive_test.js: [INFO] [ENV] setvalue counter/816 956 + node_directive_test.js: [INFO] [ENV] setvalue long_list 957 + node_directive_test.js: [INFO] [ENV] setvalue nested 958 + node_directive_test.js: [INFO] [ENV] setvalue origin 959 + node_directive_test.js: [INFO] [ENV] setvalue pp_color 960 + node_directive_test.js: [INFO] [ENV] setvalue x 961 + node_directive_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 322 962 [PASS] show_class: # #show_class counter;; 323 963 class counter : 324 964 object val mutable n : int method get : int method incr : unit end
+918 -11
test/node/node_env_test.expected
··· 2 2 3 3 node_env_test.js: [INFO] init() 4 4 Initializing findlib 5 - Parsed uri: lib/stdlib-shims/META 5 + Loaded findlib_index findlib_index: 10 META files, 0 universes 6 + Parsed uri: ./lib/stdlib-shims/META 6 7 Reading library: stdlib-shims 7 8 Number of children: 0 8 - Parsed uri: lib/sexplib0/META 9 + Parsed uri: ./lib/sexplib0/META 9 10 Reading library: sexplib0 10 11 Number of children: 0 11 - Parsed uri: lib/ppxlib/META 12 + Parsed uri: ./lib/ppxlib/META 12 13 Reading library: ppxlib 13 14 Number of children: 11 14 15 Found child: __private__ ··· 47 48 Found child: traverse_builtins 48 49 Reading library: ppxlib.traverse_builtins 49 50 Number of children: 0 50 - Parsed uri: lib/ppx_deriving/META 51 + Parsed uri: ./lib/ppx_deriving/META 51 52 Reading library: ppx_deriving 52 53 Number of children: 12 53 54 Found child: api ··· 86 87 Found child: std 87 88 Reading library: ppx_deriving.std 88 89 Number of children: 0 89 - Parsed uri: lib/ppx_derivers/META 90 + Parsed uri: ./lib/ppx_derivers/META 90 91 Reading library: ppx_derivers 91 92 Number of children: 0 92 - Parsed uri: lib/ocaml_intrinsics_kernel/META 93 + Parsed uri: ./lib/ocaml_intrinsics_kernel/META 93 94 Reading library: ocaml_intrinsics_kernel 94 95 Number of children: 0 95 - Parsed uri: lib/ocaml/stdlib/META 96 + Parsed uri: ./lib/ocaml/stdlib/META 96 97 Reading library: stdlib 97 98 Number of children: 0 98 - Parsed uri: lib/ocaml/compiler-libs/META 99 + Parsed uri: ./lib/ocaml/compiler-libs/META 99 100 Reading library: compiler-libs 100 101 Number of children: 5 101 102 Found child: common ··· 113 114 Found child: native-toplevel 114 115 Reading library: compiler-libs.native-toplevel 115 116 Number of children: 0 116 - Parsed uri: lib/ocaml-compiler-libs/META 117 + Parsed uri: ./lib/ocaml-compiler-libs/META 117 118 Reading library: ocaml-compiler-libs 118 119 Number of children: 5 119 120 Found child: bytecomp ··· 131 132 Found child: toplevel 132 133 Reading library: ocaml-compiler-libs.toplevel 133 134 Number of children: 0 134 - Parsed uri: lib/base/META 135 + Parsed uri: ./lib/base/META 135 136 Reading library: base 136 137 Number of children: 3 137 138 Found child: base_internalhash_types ··· 144 145 Reading library: base.shadow_stdlib 145 146 Number of children: 0 146 147 node_env_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/ocaml/ 147 - node_env_test.js: [INFO] toplevel modules: CamlinternalFormat, CamlinternalLazy, CamlinternalFormatBasics, CamlinternalMod, Std_exit, Stdlib, CamlinternalOO 148 + node_env_test.js: [INFO] toplevel modules: Std_exit, CamlinternalFormatBasics, CamlinternalLazy, CamlinternalMod, Stdlib, CamlinternalOO, CamlinternalFormat 148 149 node_env_test.js: [INFO] init() finished 149 150 --- Section 1: Default Environment --- 150 151 node_env_test.js: [INFO] setup() for env default... 152 + node_env_test.js: [INFO] [ENV] with_env called for default (has_saved_env=false, runtime_values_count=0) 151 153 node_env_test.js: [INFO] Fetching stdlib__Format.cmi 152 154 153 155 node_env_test.js: [INFO] Fetching stdlib__Sys.cmi ··· 155 157 error while evaluating #enable "pretty";; 156 158 error while evaluating #disable "shortvar";; 157 159 node_env_test.js: [INFO] Setup complete 160 + node_env_test.js: [INFO] [ENV] Env.diff found 92 new idents for default 161 + node_env_test.js: [INFO] [ENV] Capturing 92 new bindings for env default 162 + >> Fatal error: Continuation_already_taken unbound at toplevel 163 + node_env_test.js: [INFO] [ENV] could not capture Continuation_already_taken: Misc.Fatal_error 164 + >> Fatal error: Division_by_zero unbound at toplevel 165 + node_env_test.js: [INFO] [ENV] could not capture Division_by_zero: Misc.Fatal_error 166 + >> Fatal error: Failure unbound at toplevel 167 + node_env_test.js: [INFO] [ENV] could not capture Failure: Misc.Fatal_error 168 + >> Fatal error: Match_failure unbound at toplevel 169 + node_env_test.js: [INFO] [ENV] could not capture Match_failure: Misc.Fatal_error 170 + >> Fatal error: Invalid_argument unbound at toplevel 171 + node_env_test.js: [INFO] [ENV] could not capture Invalid_argument: Misc.Fatal_error 172 + >> Fatal error: End_of_file unbound at toplevel 173 + node_env_test.js: [INFO] [ENV] could not capture End_of_file: Misc.Fatal_error 174 + >> Fatal error: Assert_failure unbound at toplevel 175 + node_env_test.js: [INFO] [ENV] could not capture Assert_failure: Misc.Fatal_error 176 + >> Fatal error: Not_found unbound at toplevel 177 + node_env_test.js: [INFO] [ENV] could not capture Not_found: Misc.Fatal_error 178 + >> Fatal error: Out_of_memory unbound at toplevel 179 + node_env_test.js: [INFO] [ENV] could not capture Out_of_memory: Misc.Fatal_error 180 + >> Fatal error: Sys_blocked_io unbound at toplevel 181 + node_env_test.js: [INFO] [ENV] could not capture Sys_blocked_io: Misc.Fatal_error 182 + >> Fatal error: Undefined_recursive_module unbound at toplevel 183 + node_env_test.js: [INFO] [ENV] could not capture Undefined_recursive_module: Misc.Fatal_error 184 + >> Fatal error: Sys_error unbound at toplevel 185 + node_env_test.js: [INFO] [ENV] could not capture Sys_error: Misc.Fatal_error 186 + >> Fatal error: Stack_overflow unbound at toplevel 187 + node_env_test.js: [INFO] [ENV] could not capture Stack_overflow: Misc.Fatal_error 188 + >> Fatal error: CamlinternalFormat unbound at toplevel 189 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 190 + >> Fatal error: CamlinternalLazy unbound at toplevel 191 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 192 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 193 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 194 + >> Fatal error: CamlinternalOO unbound at toplevel 195 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 196 + >> Fatal error: Stdlib unbound at toplevel 197 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 198 + >> Fatal error: Std_exit unbound at toplevel 199 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 200 + >> Fatal error: CamlinternalMod unbound at toplevel 201 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 202 + >> Fatal error: CamlinternalFormat unbound at toplevel 203 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 204 + >> Fatal error: CamlinternalLazy unbound at toplevel 205 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 206 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 207 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 208 + >> Fatal error: CamlinternalOO unbound at toplevel 209 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 210 + >> Fatal error: Stdlib unbound at toplevel 211 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 212 + >> Fatal error: Std_exit unbound at toplevel 213 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 214 + >> Fatal error: CamlinternalMod unbound at toplevel 215 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 216 + >> Fatal error: Stdlib__Array unbound at toplevel 217 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Array: Misc.Fatal_error 218 + >> Fatal error: Stdlib__Atomic unbound at toplevel 219 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Atomic: Misc.Fatal_error 220 + >> Fatal error: Stdlib__ArrayLabels unbound at toplevel 221 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__ArrayLabels: Misc.Fatal_error 222 + >> Fatal error: Stdlib__Bool unbound at toplevel 223 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bool: Misc.Fatal_error 224 + >> Fatal error: Stdlib__Bytes unbound at toplevel 225 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bytes: Misc.Fatal_error 226 + >> Fatal error: Stdlib__Buffer unbound at toplevel 227 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Buffer: Misc.Fatal_error 228 + >> Fatal error: Stdlib__Bigarray unbound at toplevel 229 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bigarray: Misc.Fatal_error 230 + >> Fatal error: Stdlib__Arg unbound at toplevel 231 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Arg: Misc.Fatal_error 232 + >> Fatal error: Stdlib__Callback unbound at toplevel 233 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Callback: Misc.Fatal_error 234 + >> Fatal error: Stdlib__Complex unbound at toplevel 235 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Complex: Misc.Fatal_error 236 + >> Fatal error: Stdlib__Char unbound at toplevel 237 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Char: Misc.Fatal_error 238 + >> Fatal error: Stdlib__Digest unbound at toplevel 239 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Digest: Misc.Fatal_error 240 + >> Fatal error: Stdlib__Dynarray unbound at toplevel 241 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Dynarray: Misc.Fatal_error 242 + >> Fatal error: Stdlib__Domain unbound at toplevel 243 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Domain: Misc.Fatal_error 244 + >> Fatal error: Stdlib__Condition unbound at toplevel 245 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Condition: Misc.Fatal_error 246 + >> Fatal error: Stdlib__Either unbound at toplevel 247 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Either: Misc.Fatal_error 248 + >> Fatal error: Stdlib__Filename unbound at toplevel 249 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Filename: Misc.Fatal_error 250 + >> Fatal error: Stdlib__Ephemeron unbound at toplevel 251 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Ephemeron: Misc.Fatal_error 252 + >> Fatal error: Stdlib__Format unbound at toplevel 253 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 254 + >> Fatal error: Stdlib__Gc unbound at toplevel 255 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Gc: Misc.Fatal_error 256 + >> Fatal error: Stdlib__Fun unbound at toplevel 257 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Fun: Misc.Fatal_error 258 + >> Fatal error: Stdlib__Float unbound at toplevel 259 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Float: Misc.Fatal_error 260 + >> Fatal error: Stdlib__Effect unbound at toplevel 261 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Effect: Misc.Fatal_error 262 + >> Fatal error: Stdlib__BytesLabels unbound at toplevel 263 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__BytesLabels: Misc.Fatal_error 264 + >> Fatal error: Stdlib__Iarray unbound at toplevel 265 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Iarray: Misc.Fatal_error 266 + >> Fatal error: Stdlib__Int unbound at toplevel 267 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int: Misc.Fatal_error 268 + >> Fatal error: Stdlib__In_channel unbound at toplevel 269 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__In_channel: Misc.Fatal_error 270 + >> Fatal error: Stdlib__Int64 unbound at toplevel 271 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int64: Misc.Fatal_error 272 + >> Fatal error: Stdlib__Lexing unbound at toplevel 273 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Lexing: Misc.Fatal_error 274 + >> Fatal error: Stdlib__Lazy unbound at toplevel 275 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Lazy: Misc.Fatal_error 276 + >> Fatal error: Stdlib__Int32 unbound at toplevel 277 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int32: Misc.Fatal_error 278 + >> Fatal error: Stdlib__ListLabels unbound at toplevel 279 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__ListLabels: Misc.Fatal_error 280 + >> Fatal error: Stdlib__Marshal unbound at toplevel 281 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Marshal: Misc.Fatal_error 282 + >> Fatal error: Stdlib__Map unbound at toplevel 283 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Map: Misc.Fatal_error 284 + >> Fatal error: Stdlib__Mutex unbound at toplevel 285 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Mutex: Misc.Fatal_error 286 + >> Fatal error: Stdlib__Obj unbound at toplevel 287 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Obj: Misc.Fatal_error 288 + >> Fatal error: Stdlib__Nativeint unbound at toplevel 289 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Nativeint: Misc.Fatal_error 290 + >> Fatal error: Stdlib__MoreLabels unbound at toplevel 291 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__MoreLabels: Misc.Fatal_error 292 + >> Fatal error: Stdlib__List unbound at toplevel 293 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__List: Misc.Fatal_error 294 + >> Fatal error: Stdlib__Option unbound at toplevel 295 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Option: Misc.Fatal_error 296 + >> Fatal error: Stdlib__Pair unbound at toplevel 297 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Pair: Misc.Fatal_error 298 + >> Fatal error: Stdlib__Out_channel unbound at toplevel 299 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Out_channel: Misc.Fatal_error 300 + >> Fatal error: Stdlib__Pqueue unbound at toplevel 301 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Pqueue: Misc.Fatal_error 302 + >> Fatal error: Stdlib__Printf unbound at toplevel 303 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Printf: Misc.Fatal_error 304 + >> Fatal error: Stdlib__Printexc unbound at toplevel 305 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Printexc: Misc.Fatal_error 306 + >> Fatal error: Stdlib__Parsing unbound at toplevel 307 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Parsing: Misc.Fatal_error 308 + >> Fatal error: Stdlib__Random unbound at toplevel 309 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Random: Misc.Fatal_error 310 + >> Fatal error: Stdlib__Result unbound at toplevel 311 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Result: Misc.Fatal_error 312 + >> Fatal error: Stdlib__Repr unbound at toplevel 313 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Repr: Misc.Fatal_error 314 + >> Fatal error: Stdlib__Semaphore unbound at toplevel 315 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Semaphore: Misc.Fatal_error 316 + >> Fatal error: Stdlib__Set unbound at toplevel 317 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Set: Misc.Fatal_error 318 + >> Fatal error: Stdlib__Seq unbound at toplevel 319 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Seq: Misc.Fatal_error 320 + >> Fatal error: Stdlib__Scanf unbound at toplevel 321 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Scanf: Misc.Fatal_error 322 + >> Fatal error: Stdlib__Queue unbound at toplevel 323 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Queue: Misc.Fatal_error 324 + >> Fatal error: Stdlib__StdLabels unbound at toplevel 325 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__StdLabels: Misc.Fatal_error 326 + >> Fatal error: Stdlib__StringLabels unbound at toplevel 327 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__StringLabels: Misc.Fatal_error 328 + >> Fatal error: Stdlib__String unbound at toplevel 329 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__String: Misc.Fatal_error 330 + >> Fatal error: Stdlib__Type unbound at toplevel 331 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Type: Misc.Fatal_error 332 + >> Fatal error: Stdlib__Weak unbound at toplevel 333 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Weak: Misc.Fatal_error 334 + >> Fatal error: Stdlib__Unit unbound at toplevel 335 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Unit: Misc.Fatal_error 336 + >> Fatal error: Stdlib__Uchar unbound at toplevel 337 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Uchar: Misc.Fatal_error 338 + >> Fatal error: Stdlib__Sys unbound at toplevel 339 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 340 + >> Fatal error: Stdlib__Stack unbound at toplevel 341 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Stack: Misc.Fatal_error 342 + >> Fatal error: Stdlib__Oo unbound at toplevel 343 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Oo: Misc.Fatal_error 344 + >> Fatal error: Stdlib__Hashtbl unbound at toplevel 345 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Hashtbl: Misc.Fatal_error 158 346 node_env_test.js: [INFO] setup() finished for env default 159 347 [PASS] default_setup: Default environment setup 348 + node_env_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=0) 349 + node_env_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 350 + node_env_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 351 + node_env_test.js: [INFO] [ENV] captured default_val 160 352 [PASS] default_define: # let default_val = 42;; 161 353 val default_val : int = 42 162 354 ··· 164 356 node_env_test.js: [INFO] create_env(env1) 165 357 [PASS] create_env1: Created environment env1 166 358 node_env_test.js: [INFO] setup() for env env1... 359 + node_env_test.js: [INFO] [ENV] with_env called for env1 (has_saved_env=false, runtime_values_count=0) 167 360 error while evaluating #enable "pretty";; 168 361 error while evaluating #disable "shortvar";; 169 362 node_env_test.js: [INFO] Setup complete 363 + node_env_test.js: [INFO] [ENV] Env.diff found 103 new idents for env1 364 + node_env_test.js: [INFO] [ENV] Capturing 103 new bindings for env env1 365 + >> Fatal error: Continuation_already_taken unbound at toplevel 366 + node_env_test.js: [INFO] [ENV] could not capture Continuation_already_taken: Misc.Fatal_error 367 + >> Fatal error: Division_by_zero unbound at toplevel 368 + node_env_test.js: [INFO] [ENV] could not capture Division_by_zero: Misc.Fatal_error 369 + >> Fatal error: Failure unbound at toplevel 370 + node_env_test.js: [INFO] [ENV] could not capture Failure: Misc.Fatal_error 371 + >> Fatal error: Match_failure unbound at toplevel 372 + node_env_test.js: [INFO] [ENV] could not capture Match_failure: Misc.Fatal_error 373 + >> Fatal error: Invalid_argument unbound at toplevel 374 + node_env_test.js: [INFO] [ENV] could not capture Invalid_argument: Misc.Fatal_error 375 + >> Fatal error: End_of_file unbound at toplevel 376 + node_env_test.js: [INFO] [ENV] could not capture End_of_file: Misc.Fatal_error 377 + >> Fatal error: Assert_failure unbound at toplevel 378 + node_env_test.js: [INFO] [ENV] could not capture Assert_failure: Misc.Fatal_error 379 + >> Fatal error: Not_found unbound at toplevel 380 + node_env_test.js: [INFO] [ENV] could not capture Not_found: Misc.Fatal_error 381 + >> Fatal error: Out_of_memory unbound at toplevel 382 + node_env_test.js: [INFO] [ENV] could not capture Out_of_memory: Misc.Fatal_error 383 + >> Fatal error: Sys_blocked_io unbound at toplevel 384 + node_env_test.js: [INFO] [ENV] could not capture Sys_blocked_io: Misc.Fatal_error 385 + >> Fatal error: Undefined_recursive_module unbound at toplevel 386 + node_env_test.js: [INFO] [ENV] could not capture Undefined_recursive_module: Misc.Fatal_error 387 + >> Fatal error: Sys_error unbound at toplevel 388 + node_env_test.js: [INFO] [ENV] could not capture Sys_error: Misc.Fatal_error 389 + >> Fatal error: Stack_overflow unbound at toplevel 390 + node_env_test.js: [INFO] [ENV] could not capture Stack_overflow: Misc.Fatal_error 391 + >> Fatal error: CamlinternalFormat unbound at toplevel 392 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 393 + >> Fatal error: CamlinternalLazy unbound at toplevel 394 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 395 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 396 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 397 + >> Fatal error: CamlinternalOO unbound at toplevel 398 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 399 + >> Fatal error: Stdlib unbound at toplevel 400 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 401 + >> Fatal error: Stdlib__Sys unbound at toplevel 402 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 403 + >> Fatal error: Stdlib__Format unbound at toplevel 404 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 405 + >> Fatal error: Std_exit unbound at toplevel 406 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 407 + >> Fatal error: CamlinternalMod unbound at toplevel 408 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 409 + >> Fatal error: CamlinternalFormat unbound at toplevel 410 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 411 + >> Fatal error: CamlinternalFormat unbound at toplevel 412 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 413 + >> Fatal error: CamlinternalLazy unbound at toplevel 414 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 415 + >> Fatal error: CamlinternalLazy unbound at toplevel 416 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 417 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 418 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 419 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 420 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 421 + >> Fatal error: CamlinternalOO unbound at toplevel 422 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 423 + >> Fatal error: CamlinternalOO unbound at toplevel 424 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 425 + >> Fatal error: Std_exit unbound at toplevel 426 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 427 + >> Fatal error: Std_exit unbound at toplevel 428 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 429 + >> Fatal error: CamlinternalMod unbound at toplevel 430 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 431 + >> Fatal error: CamlinternalMod unbound at toplevel 432 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 433 + >> Fatal error: Stdlib__Arg unbound at toplevel 434 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Arg: Misc.Fatal_error 435 + >> Fatal error: Stdlib__Array unbound at toplevel 436 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Array: Misc.Fatal_error 437 + >> Fatal error: Stdlib__Atomic unbound at toplevel 438 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Atomic: Misc.Fatal_error 439 + >> Fatal error: Stdlib__Bigarray unbound at toplevel 440 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bigarray: Misc.Fatal_error 441 + >> Fatal error: Stdlib__ArrayLabels unbound at toplevel 442 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__ArrayLabels: Misc.Fatal_error 443 + >> Fatal error: Stdlib unbound at toplevel 444 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 445 + >> Fatal error: Stdlib unbound at toplevel 446 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 447 + >> Fatal error: Stdlib__Buffer unbound at toplevel 448 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Buffer: Misc.Fatal_error 449 + >> Fatal error: Stdlib__Bytes unbound at toplevel 450 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bytes: Misc.Fatal_error 451 + >> Fatal error: Stdlib__Callback unbound at toplevel 452 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Callback: Misc.Fatal_error 453 + >> Fatal error: Stdlib__Char unbound at toplevel 454 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Char: Misc.Fatal_error 455 + >> Fatal error: Stdlib__BytesLabels unbound at toplevel 456 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__BytesLabels: Misc.Fatal_error 457 + >> Fatal error: Stdlib__Condition unbound at toplevel 458 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Condition: Misc.Fatal_error 459 + >> Fatal error: Stdlib__Digest unbound at toplevel 460 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Digest: Misc.Fatal_error 461 + >> Fatal error: Stdlib__Dynarray unbound at toplevel 462 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Dynarray: Misc.Fatal_error 463 + >> Fatal error: Stdlib__Effect unbound at toplevel 464 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Effect: Misc.Fatal_error 465 + >> Fatal error: Stdlib__Domain unbound at toplevel 466 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Domain: Misc.Fatal_error 467 + >> Fatal error: Stdlib__Complex unbound at toplevel 468 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Complex: Misc.Fatal_error 469 + >> Fatal error: Stdlib__Bool unbound at toplevel 470 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bool: Misc.Fatal_error 471 + >> Fatal error: Stdlib__Ephemeron unbound at toplevel 472 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Ephemeron: Misc.Fatal_error 473 + >> Fatal error: Stdlib__Float unbound at toplevel 474 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Float: Misc.Fatal_error 475 + >> Fatal error: Stdlib__Filename unbound at toplevel 476 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Filename: Misc.Fatal_error 477 + >> Fatal error: Stdlib__Fun unbound at toplevel 478 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Fun: Misc.Fatal_error 479 + >> Fatal error: Stdlib__Hashtbl unbound at toplevel 480 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Hashtbl: Misc.Fatal_error 481 + >> Fatal error: Stdlib__Gc unbound at toplevel 482 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Gc: Misc.Fatal_error 483 + >> Fatal error: Stdlib__Format unbound at toplevel 484 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 485 + >> Fatal error: Stdlib__Format unbound at toplevel 486 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 487 + >> Fatal error: Stdlib__In_channel unbound at toplevel 488 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__In_channel: Misc.Fatal_error 489 + >> Fatal error: Stdlib__Int32 unbound at toplevel 490 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int32: Misc.Fatal_error 491 + >> Fatal error: Stdlib__Int unbound at toplevel 492 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int: Misc.Fatal_error 493 + >> Fatal error: Stdlib__Lazy unbound at toplevel 494 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Lazy: Misc.Fatal_error 495 + >> Fatal error: Stdlib__List unbound at toplevel 496 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__List: Misc.Fatal_error 497 + >> Fatal error: Stdlib__Lexing unbound at toplevel 498 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Lexing: Misc.Fatal_error 499 + >> Fatal error: Stdlib__Int64 unbound at toplevel 500 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int64: Misc.Fatal_error 501 + >> Fatal error: Stdlib__Iarray unbound at toplevel 502 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Iarray: Misc.Fatal_error 503 + >> Fatal error: Stdlib__Map unbound at toplevel 504 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Map: Misc.Fatal_error 505 + >> Fatal error: Stdlib__MoreLabels unbound at toplevel 506 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__MoreLabels: Misc.Fatal_error 507 + >> Fatal error: Stdlib__Marshal unbound at toplevel 508 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Marshal: Misc.Fatal_error 509 + >> Fatal error: Stdlib__Nativeint unbound at toplevel 510 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Nativeint: Misc.Fatal_error 511 + >> Fatal error: Stdlib__Oo unbound at toplevel 512 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Oo: Misc.Fatal_error 513 + >> Fatal error: Stdlib__Obj unbound at toplevel 514 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Obj: Misc.Fatal_error 515 + >> Fatal error: Stdlib__Mutex unbound at toplevel 516 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Mutex: Misc.Fatal_error 517 + >> Fatal error: Stdlib__Out_channel unbound at toplevel 518 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Out_channel: Misc.Fatal_error 519 + >> Fatal error: Stdlib__Parsing unbound at toplevel 520 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Parsing: Misc.Fatal_error 521 + >> Fatal error: Stdlib__Pair unbound at toplevel 522 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Pair: Misc.Fatal_error 523 + >> Fatal error: Stdlib__Printexc unbound at toplevel 524 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Printexc: Misc.Fatal_error 525 + >> Fatal error: Stdlib__Queue unbound at toplevel 526 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Queue: Misc.Fatal_error 527 + >> Fatal error: Stdlib__Printf unbound at toplevel 528 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Printf: Misc.Fatal_error 529 + >> Fatal error: Stdlib__Pqueue unbound at toplevel 530 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Pqueue: Misc.Fatal_error 531 + >> Fatal error: Stdlib__Option unbound at toplevel 532 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Option: Misc.Fatal_error 533 + >> Fatal error: Stdlib__Repr unbound at toplevel 534 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Repr: Misc.Fatal_error 535 + >> Fatal error: Stdlib__Scanf unbound at toplevel 536 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Scanf: Misc.Fatal_error 537 + >> Fatal error: Stdlib__Result unbound at toplevel 538 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Result: Misc.Fatal_error 539 + >> Fatal error: Stdlib__Seq unbound at toplevel 540 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Seq: Misc.Fatal_error 541 + >> Fatal error: Stdlib__Stack unbound at toplevel 542 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Stack: Misc.Fatal_error 543 + >> Fatal error: Stdlib__Set unbound at toplevel 544 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Set: Misc.Fatal_error 545 + >> Fatal error: Stdlib__Semaphore unbound at toplevel 546 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Semaphore: Misc.Fatal_error 547 + >> Fatal error: Stdlib__String unbound at toplevel 548 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__String: Misc.Fatal_error 549 + >> Fatal error: Stdlib__Sys unbound at toplevel 550 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 551 + >> Fatal error: Stdlib__Sys unbound at toplevel 552 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 553 + >> Fatal error: Stdlib__StringLabels unbound at toplevel 554 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__StringLabels: Misc.Fatal_error 555 + >> Fatal error: Stdlib__Uchar unbound at toplevel 556 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Uchar: Misc.Fatal_error 557 + >> Fatal error: Stdlib__Weak unbound at toplevel 558 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Weak: Misc.Fatal_error 559 + >> Fatal error: Stdlib__Unit unbound at toplevel 560 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Unit: Misc.Fatal_error 561 + >> Fatal error: Stdlib__Type unbound at toplevel 562 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Type: Misc.Fatal_error 563 + >> Fatal error: Stdlib__StdLabels unbound at toplevel 564 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__StdLabels: Misc.Fatal_error 565 + >> Fatal error: Stdlib__Random unbound at toplevel 566 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Random: Misc.Fatal_error 567 + >> Fatal error: Stdlib__ListLabels unbound at toplevel 568 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__ListLabels: Misc.Fatal_error 569 + >> Fatal error: Stdlib__Either unbound at toplevel 570 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Either: Misc.Fatal_error 170 571 node_env_test.js: [INFO] setup() finished for env env1 171 572 [PASS] setup_env1: Setup environment env1 573 + node_env_test.js: [INFO] [ENV] with_env called for env1 (has_saved_env=true, runtime_values_count=0) 574 + node_env_test.js: [INFO] [ENV] Env.diff found 1 new idents for env1 575 + node_env_test.js: [INFO] [ENV] Capturing 1 new bindings for env env1 576 + node_env_test.js: [INFO] [ENV] captured env1_val 172 577 [PASS] env1_define: # let env1_val = 100;; 173 578 val env1_val : int = 100 174 579 175 580 --- Section 3: Environment Isolation --- 581 + node_env_test.js: [INFO] [ENV] with_env called for env1 (has_saved_env=true, runtime_values_count=1) 582 + node_env_test.js: [INFO] [ENV] Restoring 1 runtime values for env env1 583 + node_env_test.js: [INFO] [ENV] setvalue env1_val 176 584 Line 1, characters 0-11: 177 585 Error: Unbound value default_val 586 + node_env_test.js: [INFO] [ENV] Env.diff found 0 new idents for env1 178 587 [PASS] isolation_default_from_env1: No leakage: # default_val;; 588 + node_env_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=1) 589 + node_env_test.js: [INFO] [ENV] Restoring 1 runtime values for env default 590 + node_env_test.js: [INFO] [ENV] setvalue default_val 179 591 180 592 Line 1, characters 0-8: 181 593 Error: Unbound value env1_val 594 + node_env_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 182 595 [PASS] isolation_env1_from_default: No leakage: # env1_val;; 596 + node_env_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=1) 597 + node_env_test.js: [INFO] [ENV] Restoring 1 runtime values for env default 598 + node_env_test.js: [INFO] [ENV] setvalue default_val 599 + node_env_test.js: [INFO] [ENV] Env.diff found 0 new idents for default 183 600 [PASS] default_still_works: # default_val;; 184 601 - : int = 42 185 602 186 603 --- Section 4: Multiple Environments --- 187 604 node_env_test.js: [INFO] create_env(env2) 188 605 node_env_test.js: [INFO] setup() for env env2... 606 + node_env_test.js: [INFO] [ENV] with_env called for env2 (has_saved_env=false, runtime_values_count=0) 189 607 error while evaluating #enable "pretty";; 190 608 error while evaluating #disable "shortvar";; 191 609 node_env_test.js: [INFO] Setup complete 610 + node_env_test.js: [INFO] [ENV] Env.diff found 112 new idents for env2 611 + node_env_test.js: [INFO] [ENV] Capturing 112 new bindings for env env2 612 + >> Fatal error: Continuation_already_taken unbound at toplevel 613 + node_env_test.js: [INFO] [ENV] could not capture Continuation_already_taken: Misc.Fatal_error 614 + >> Fatal error: Division_by_zero unbound at toplevel 615 + node_env_test.js: [INFO] [ENV] could not capture Division_by_zero: Misc.Fatal_error 616 + >> Fatal error: Failure unbound at toplevel 617 + node_env_test.js: [INFO] [ENV] could not capture Failure: Misc.Fatal_error 618 + >> Fatal error: Match_failure unbound at toplevel 619 + node_env_test.js: [INFO] [ENV] could not capture Match_failure: Misc.Fatal_error 620 + >> Fatal error: Invalid_argument unbound at toplevel 621 + node_env_test.js: [INFO] [ENV] could not capture Invalid_argument: Misc.Fatal_error 622 + >> Fatal error: End_of_file unbound at toplevel 623 + node_env_test.js: [INFO] [ENV] could not capture End_of_file: Misc.Fatal_error 624 + >> Fatal error: Assert_failure unbound at toplevel 625 + node_env_test.js: [INFO] [ENV] could not capture Assert_failure: Misc.Fatal_error 626 + >> Fatal error: Not_found unbound at toplevel 627 + node_env_test.js: [INFO] [ENV] could not capture Not_found: Misc.Fatal_error 628 + >> Fatal error: Out_of_memory unbound at toplevel 629 + node_env_test.js: [INFO] [ENV] could not capture Out_of_memory: Misc.Fatal_error 630 + >> Fatal error: Sys_blocked_io unbound at toplevel 631 + node_env_test.js: [INFO] [ENV] could not capture Sys_blocked_io: Misc.Fatal_error 632 + >> Fatal error: Undefined_recursive_module unbound at toplevel 633 + node_env_test.js: [INFO] [ENV] could not capture Undefined_recursive_module: Misc.Fatal_error 634 + >> Fatal error: Sys_error unbound at toplevel 635 + node_env_test.js: [INFO] [ENV] could not capture Sys_error: Misc.Fatal_error 636 + >> Fatal error: Stack_overflow unbound at toplevel 637 + node_env_test.js: [INFO] [ENV] could not capture Stack_overflow: Misc.Fatal_error 638 + >> Fatal error: CamlinternalFormat unbound at toplevel 639 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 640 + >> Fatal error: CamlinternalLazy unbound at toplevel 641 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 642 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 643 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 644 + >> Fatal error: CamlinternalOO unbound at toplevel 645 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 646 + >> Fatal error: Stdlib unbound at toplevel 647 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 648 + >> Fatal error: Stdlib__Sys unbound at toplevel 649 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 650 + >> Fatal error: Stdlib__Format unbound at toplevel 651 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 652 + >> Fatal error: Std_exit unbound at toplevel 653 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 654 + >> Fatal error: CamlinternalMod unbound at toplevel 655 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 656 + >> Fatal error: CamlinternalFormat unbound at toplevel 657 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 658 + >> Fatal error: CamlinternalFormat unbound at toplevel 659 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 660 + >> Fatal error: CamlinternalFormat unbound at toplevel 661 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 662 + >> Fatal error: CamlinternalLazy unbound at toplevel 663 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 664 + >> Fatal error: CamlinternalLazy unbound at toplevel 665 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 666 + >> Fatal error: CamlinternalLazy unbound at toplevel 667 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 668 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 669 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 670 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 671 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 672 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 673 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 674 + >> Fatal error: CamlinternalOO unbound at toplevel 675 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 676 + >> Fatal error: CamlinternalOO unbound at toplevel 677 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 678 + >> Fatal error: CamlinternalOO unbound at toplevel 679 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 680 + >> Fatal error: Std_exit unbound at toplevel 681 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 682 + >> Fatal error: Std_exit unbound at toplevel 683 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 684 + >> Fatal error: Std_exit unbound at toplevel 685 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 686 + >> Fatal error: CamlinternalMod unbound at toplevel 687 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 688 + >> Fatal error: CamlinternalMod unbound at toplevel 689 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 690 + >> Fatal error: CamlinternalMod unbound at toplevel 691 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 692 + >> Fatal error: Stdlib__Arg unbound at toplevel 693 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Arg: Misc.Fatal_error 694 + >> Fatal error: Stdlib__Array unbound at toplevel 695 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Array: Misc.Fatal_error 696 + >> Fatal error: Stdlib__Atomic unbound at toplevel 697 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Atomic: Misc.Fatal_error 698 + >> Fatal error: Stdlib__Bigarray unbound at toplevel 699 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bigarray: Misc.Fatal_error 700 + >> Fatal error: Stdlib__ArrayLabels unbound at toplevel 701 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__ArrayLabels: Misc.Fatal_error 702 + >> Fatal error: Stdlib unbound at toplevel 703 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 704 + >> Fatal error: Stdlib unbound at toplevel 705 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 706 + >> Fatal error: Stdlib unbound at toplevel 707 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 708 + >> Fatal error: Stdlib__Buffer unbound at toplevel 709 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Buffer: Misc.Fatal_error 710 + >> Fatal error: Stdlib__Bytes unbound at toplevel 711 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bytes: Misc.Fatal_error 712 + >> Fatal error: Stdlib__Callback unbound at toplevel 713 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Callback: Misc.Fatal_error 714 + >> Fatal error: Stdlib__Char unbound at toplevel 715 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Char: Misc.Fatal_error 716 + >> Fatal error: Stdlib__BytesLabels unbound at toplevel 717 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__BytesLabels: Misc.Fatal_error 718 + >> Fatal error: Stdlib__Condition unbound at toplevel 719 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Condition: Misc.Fatal_error 720 + >> Fatal error: Stdlib__Digest unbound at toplevel 721 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Digest: Misc.Fatal_error 722 + >> Fatal error: Stdlib__Dynarray unbound at toplevel 723 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Dynarray: Misc.Fatal_error 724 + >> Fatal error: Stdlib__Effect unbound at toplevel 725 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Effect: Misc.Fatal_error 726 + >> Fatal error: Stdlib__Domain unbound at toplevel 727 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Domain: Misc.Fatal_error 728 + >> Fatal error: Stdlib__Complex unbound at toplevel 729 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Complex: Misc.Fatal_error 730 + >> Fatal error: Stdlib__Bool unbound at toplevel 731 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bool: Misc.Fatal_error 732 + >> Fatal error: Stdlib__Ephemeron unbound at toplevel 733 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Ephemeron: Misc.Fatal_error 734 + >> Fatal error: Stdlib__Float unbound at toplevel 735 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Float: Misc.Fatal_error 736 + >> Fatal error: Stdlib__Filename unbound at toplevel 737 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Filename: Misc.Fatal_error 738 + >> Fatal error: Stdlib__Fun unbound at toplevel 739 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Fun: Misc.Fatal_error 740 + >> Fatal error: Stdlib__Hashtbl unbound at toplevel 741 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Hashtbl: Misc.Fatal_error 742 + >> Fatal error: Stdlib__Gc unbound at toplevel 743 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Gc: Misc.Fatal_error 744 + >> Fatal error: Stdlib__Format unbound at toplevel 745 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 746 + >> Fatal error: Stdlib__Format unbound at toplevel 747 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 748 + >> Fatal error: Stdlib__Format unbound at toplevel 749 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 750 + >> Fatal error: Stdlib__In_channel unbound at toplevel 751 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__In_channel: Misc.Fatal_error 752 + >> Fatal error: Stdlib__Int32 unbound at toplevel 753 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int32: Misc.Fatal_error 754 + >> Fatal error: Stdlib__Int unbound at toplevel 755 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int: Misc.Fatal_error 756 + >> Fatal error: Stdlib__Lazy unbound at toplevel 757 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Lazy: Misc.Fatal_error 758 + >> Fatal error: Stdlib__List unbound at toplevel 759 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__List: Misc.Fatal_error 760 + >> Fatal error: Stdlib__Lexing unbound at toplevel 761 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Lexing: Misc.Fatal_error 762 + >> Fatal error: Stdlib__Int64 unbound at toplevel 763 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int64: Misc.Fatal_error 764 + >> Fatal error: Stdlib__Iarray unbound at toplevel 765 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Iarray: Misc.Fatal_error 766 + >> Fatal error: Stdlib__Map unbound at toplevel 767 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Map: Misc.Fatal_error 768 + >> Fatal error: Stdlib__MoreLabels unbound at toplevel 769 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__MoreLabels: Misc.Fatal_error 770 + >> Fatal error: Stdlib__Marshal unbound at toplevel 771 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Marshal: Misc.Fatal_error 772 + >> Fatal error: Stdlib__Nativeint unbound at toplevel 773 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Nativeint: Misc.Fatal_error 774 + >> Fatal error: Stdlib__Oo unbound at toplevel 775 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Oo: Misc.Fatal_error 776 + >> Fatal error: Stdlib__Obj unbound at toplevel 777 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Obj: Misc.Fatal_error 778 + >> Fatal error: Stdlib__Mutex unbound at toplevel 779 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Mutex: Misc.Fatal_error 780 + >> Fatal error: Stdlib__Out_channel unbound at toplevel 781 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Out_channel: Misc.Fatal_error 782 + >> Fatal error: Stdlib__Parsing unbound at toplevel 783 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Parsing: Misc.Fatal_error 784 + >> Fatal error: Stdlib__Pair unbound at toplevel 785 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Pair: Misc.Fatal_error 786 + >> Fatal error: Stdlib__Printexc unbound at toplevel 787 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Printexc: Misc.Fatal_error 788 + >> Fatal error: Stdlib__Queue unbound at toplevel 789 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Queue: Misc.Fatal_error 790 + >> Fatal error: Stdlib__Printf unbound at toplevel 791 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Printf: Misc.Fatal_error 792 + >> Fatal error: Stdlib__Pqueue unbound at toplevel 793 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Pqueue: Misc.Fatal_error 794 + >> Fatal error: Stdlib__Option unbound at toplevel 795 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Option: Misc.Fatal_error 796 + >> Fatal error: Stdlib__Repr unbound at toplevel 797 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Repr: Misc.Fatal_error 798 + >> Fatal error: Stdlib__Scanf unbound at toplevel 799 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Scanf: Misc.Fatal_error 800 + >> Fatal error: Stdlib__Result unbound at toplevel 801 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Result: Misc.Fatal_error 802 + >> Fatal error: Stdlib__Seq unbound at toplevel 803 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Seq: Misc.Fatal_error 804 + >> Fatal error: Stdlib__Stack unbound at toplevel 805 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Stack: Misc.Fatal_error 806 + >> Fatal error: Stdlib__Set unbound at toplevel 807 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Set: Misc.Fatal_error 808 + >> Fatal error: Stdlib__Semaphore unbound at toplevel 809 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Semaphore: Misc.Fatal_error 810 + >> Fatal error: Stdlib__String unbound at toplevel 811 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__String: Misc.Fatal_error 812 + >> Fatal error: Stdlib__Sys unbound at toplevel 813 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 814 + >> Fatal error: Stdlib__Sys unbound at toplevel 815 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 816 + >> Fatal error: Stdlib__Sys unbound at toplevel 817 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 818 + >> Fatal error: Stdlib__StringLabels unbound at toplevel 819 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__StringLabels: Misc.Fatal_error 820 + >> Fatal error: Stdlib__Uchar unbound at toplevel 821 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Uchar: Misc.Fatal_error 822 + >> Fatal error: Stdlib__Weak unbound at toplevel 823 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Weak: Misc.Fatal_error 824 + >> Fatal error: Stdlib__Unit unbound at toplevel 825 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Unit: Misc.Fatal_error 826 + >> Fatal error: Stdlib__Type unbound at toplevel 827 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Type: Misc.Fatal_error 828 + >> Fatal error: Stdlib__StdLabels unbound at toplevel 829 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__StdLabels: Misc.Fatal_error 830 + >> Fatal error: Stdlib__Random unbound at toplevel 831 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Random: Misc.Fatal_error 832 + >> Fatal error: Stdlib__ListLabels unbound at toplevel 833 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__ListLabels: Misc.Fatal_error 834 + >> Fatal error: Stdlib__Either unbound at toplevel 835 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Either: Misc.Fatal_error 192 836 node_env_test.js: [INFO] setup() finished for env env2 193 837 [PASS] create_and_setup_env2: Created and setup env2 838 + node_env_test.js: [INFO] [ENV] with_env called for env2 (has_saved_env=true, runtime_values_count=0) 839 + node_env_test.js: [INFO] [ENV] Env.diff found 1 new idents for env2 840 + node_env_test.js: [INFO] [ENV] Capturing 1 new bindings for env env2 841 + node_env_test.js: [INFO] [ENV] captured env2_val 194 842 [PASS] env2_define: # let env2_val = 200;; 195 843 val env2_val : int = 200 844 + node_env_test.js: [INFO] [ENV] with_env called for env2 (has_saved_env=true, runtime_values_count=1) 845 + node_env_test.js: [INFO] [ENV] Restoring 1 runtime values for env env2 846 + node_env_test.js: [INFO] [ENV] setvalue env2_val 196 847 197 848 Line 1, characters 0-8: 198 849 Error: Unbound value env1_val 199 850 Hint: Did you mean env2_val? 851 + node_env_test.js: [INFO] [ENV] Env.diff found 0 new idents for env2 200 852 [PASS] isolation_env1_from_env2: No leakage: # env1_val;; 853 + node_env_test.js: [INFO] [ENV] with_env called for env1 (has_saved_env=true, runtime_values_count=1) 854 + node_env_test.js: [INFO] [ENV] Restoring 1 runtime values for env env1 855 + node_env_test.js: [INFO] [ENV] setvalue env1_val 201 856 202 857 Line 1, characters 0-8: 203 858 Error: Unbound value env2_val 204 859 Hint: Did you mean env1_val? 860 + node_env_test.js: [INFO] [ENV] Env.diff found 0 new idents for env1 205 861 [PASS] isolation_env2_from_env1: No leakage: # env2_val;; 206 862 207 863 --- Section 5: List Environments --- ··· 221 877 --- Section 7: Reuse Environment Name --- 222 878 node_env_test.js: [INFO] create_env(env2) 223 879 node_env_test.js: [INFO] setup() for env env2... 880 + node_env_test.js: [INFO] [ENV] with_env called for env2 (has_saved_env=false, runtime_values_count=0) 224 881 error while evaluating #enable "pretty";; 225 882 error while evaluating #disable "shortvar";; 226 883 node_env_test.js: [INFO] Setup complete 884 + node_env_test.js: [INFO] [ENV] Env.diff found 121 new idents for env2 885 + node_env_test.js: [INFO] [ENV] Capturing 121 new bindings for env env2 886 + >> Fatal error: Continuation_already_taken unbound at toplevel 887 + node_env_test.js: [INFO] [ENV] could not capture Continuation_already_taken: Misc.Fatal_error 888 + >> Fatal error: Division_by_zero unbound at toplevel 889 + node_env_test.js: [INFO] [ENV] could not capture Division_by_zero: Misc.Fatal_error 890 + >> Fatal error: Failure unbound at toplevel 891 + node_env_test.js: [INFO] [ENV] could not capture Failure: Misc.Fatal_error 892 + >> Fatal error: Match_failure unbound at toplevel 893 + node_env_test.js: [INFO] [ENV] could not capture Match_failure: Misc.Fatal_error 894 + >> Fatal error: Invalid_argument unbound at toplevel 895 + node_env_test.js: [INFO] [ENV] could not capture Invalid_argument: Misc.Fatal_error 896 + >> Fatal error: End_of_file unbound at toplevel 897 + node_env_test.js: [INFO] [ENV] could not capture End_of_file: Misc.Fatal_error 898 + >> Fatal error: Assert_failure unbound at toplevel 899 + node_env_test.js: [INFO] [ENV] could not capture Assert_failure: Misc.Fatal_error 900 + >> Fatal error: Not_found unbound at toplevel 901 + node_env_test.js: [INFO] [ENV] could not capture Not_found: Misc.Fatal_error 902 + >> Fatal error: Out_of_memory unbound at toplevel 903 + node_env_test.js: [INFO] [ENV] could not capture Out_of_memory: Misc.Fatal_error 904 + >> Fatal error: Sys_blocked_io unbound at toplevel 905 + node_env_test.js: [INFO] [ENV] could not capture Sys_blocked_io: Misc.Fatal_error 906 + >> Fatal error: Undefined_recursive_module unbound at toplevel 907 + node_env_test.js: [INFO] [ENV] could not capture Undefined_recursive_module: Misc.Fatal_error 908 + >> Fatal error: Sys_error unbound at toplevel 909 + node_env_test.js: [INFO] [ENV] could not capture Sys_error: Misc.Fatal_error 910 + >> Fatal error: Stack_overflow unbound at toplevel 911 + node_env_test.js: [INFO] [ENV] could not capture Stack_overflow: Misc.Fatal_error 912 + >> Fatal error: CamlinternalFormat unbound at toplevel 913 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 914 + >> Fatal error: CamlinternalLazy unbound at toplevel 915 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 916 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 917 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 918 + >> Fatal error: CamlinternalOO unbound at toplevel 919 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 920 + >> Fatal error: Stdlib unbound at toplevel 921 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 922 + >> Fatal error: Stdlib__Sys unbound at toplevel 923 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 924 + >> Fatal error: Stdlib__Format unbound at toplevel 925 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 926 + >> Fatal error: Std_exit unbound at toplevel 927 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 928 + >> Fatal error: CamlinternalMod unbound at toplevel 929 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 930 + >> Fatal error: CamlinternalFormat unbound at toplevel 931 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 932 + >> Fatal error: CamlinternalFormat unbound at toplevel 933 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 934 + >> Fatal error: CamlinternalFormat unbound at toplevel 935 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 936 + >> Fatal error: CamlinternalFormat unbound at toplevel 937 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 938 + >> Fatal error: CamlinternalLazy unbound at toplevel 939 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 940 + >> Fatal error: CamlinternalLazy unbound at toplevel 941 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 942 + >> Fatal error: CamlinternalLazy unbound at toplevel 943 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 944 + >> Fatal error: CamlinternalLazy unbound at toplevel 945 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 946 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 947 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 948 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 949 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 950 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 951 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 952 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 953 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 954 + >> Fatal error: CamlinternalOO unbound at toplevel 955 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 956 + >> Fatal error: CamlinternalOO unbound at toplevel 957 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 958 + >> Fatal error: CamlinternalOO unbound at toplevel 959 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 960 + >> Fatal error: CamlinternalOO unbound at toplevel 961 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 962 + >> Fatal error: Std_exit unbound at toplevel 963 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 964 + >> Fatal error: Std_exit unbound at toplevel 965 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 966 + >> Fatal error: Std_exit unbound at toplevel 967 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 968 + >> Fatal error: Std_exit unbound at toplevel 969 + node_env_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 970 + >> Fatal error: CamlinternalMod unbound at toplevel 971 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 972 + >> Fatal error: CamlinternalMod unbound at toplevel 973 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 974 + >> Fatal error: CamlinternalMod unbound at toplevel 975 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 976 + >> Fatal error: CamlinternalMod unbound at toplevel 977 + node_env_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 978 + >> Fatal error: Stdlib__Arg unbound at toplevel 979 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Arg: Misc.Fatal_error 980 + >> Fatal error: Stdlib__Array unbound at toplevel 981 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Array: Misc.Fatal_error 982 + >> Fatal error: Stdlib__Atomic unbound at toplevel 983 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Atomic: Misc.Fatal_error 984 + >> Fatal error: Stdlib__Bigarray unbound at toplevel 985 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bigarray: Misc.Fatal_error 986 + >> Fatal error: Stdlib__ArrayLabels unbound at toplevel 987 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__ArrayLabels: Misc.Fatal_error 988 + >> Fatal error: Stdlib unbound at toplevel 989 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 990 + >> Fatal error: Stdlib unbound at toplevel 991 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 992 + >> Fatal error: Stdlib unbound at toplevel 993 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 994 + >> Fatal error: Stdlib unbound at toplevel 995 + node_env_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 996 + >> Fatal error: Stdlib__Buffer unbound at toplevel 997 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Buffer: Misc.Fatal_error 998 + >> Fatal error: Stdlib__Bytes unbound at toplevel 999 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bytes: Misc.Fatal_error 1000 + >> Fatal error: Stdlib__Callback unbound at toplevel 1001 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Callback: Misc.Fatal_error 1002 + >> Fatal error: Stdlib__Char unbound at toplevel 1003 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Char: Misc.Fatal_error 1004 + >> Fatal error: Stdlib__BytesLabels unbound at toplevel 1005 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__BytesLabels: Misc.Fatal_error 1006 + >> Fatal error: Stdlib__Condition unbound at toplevel 1007 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Condition: Misc.Fatal_error 1008 + >> Fatal error: Stdlib__Digest unbound at toplevel 1009 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Digest: Misc.Fatal_error 1010 + >> Fatal error: Stdlib__Dynarray unbound at toplevel 1011 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Dynarray: Misc.Fatal_error 1012 + >> Fatal error: Stdlib__Effect unbound at toplevel 1013 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Effect: Misc.Fatal_error 1014 + >> Fatal error: Stdlib__Domain unbound at toplevel 1015 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Domain: Misc.Fatal_error 1016 + >> Fatal error: Stdlib__Complex unbound at toplevel 1017 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Complex: Misc.Fatal_error 1018 + >> Fatal error: Stdlib__Bool unbound at toplevel 1019 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Bool: Misc.Fatal_error 1020 + >> Fatal error: Stdlib__Ephemeron unbound at toplevel 1021 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Ephemeron: Misc.Fatal_error 1022 + >> Fatal error: Stdlib__Float unbound at toplevel 1023 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Float: Misc.Fatal_error 1024 + >> Fatal error: Stdlib__Filename unbound at toplevel 1025 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Filename: Misc.Fatal_error 1026 + >> Fatal error: Stdlib__Fun unbound at toplevel 1027 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Fun: Misc.Fatal_error 1028 + >> Fatal error: Stdlib__Hashtbl unbound at toplevel 1029 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Hashtbl: Misc.Fatal_error 1030 + >> Fatal error: Stdlib__Gc unbound at toplevel 1031 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Gc: Misc.Fatal_error 1032 + >> Fatal error: Stdlib__Format unbound at toplevel 1033 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 1034 + >> Fatal error: Stdlib__Format unbound at toplevel 1035 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 1036 + >> Fatal error: Stdlib__Format unbound at toplevel 1037 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 1038 + >> Fatal error: Stdlib__Format unbound at toplevel 1039 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 1040 + >> Fatal error: Stdlib__In_channel unbound at toplevel 1041 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__In_channel: Misc.Fatal_error 1042 + >> Fatal error: Stdlib__Int32 unbound at toplevel 1043 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int32: Misc.Fatal_error 1044 + >> Fatal error: Stdlib__Int unbound at toplevel 1045 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int: Misc.Fatal_error 1046 + >> Fatal error: Stdlib__Lazy unbound at toplevel 1047 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Lazy: Misc.Fatal_error 1048 + >> Fatal error: Stdlib__List unbound at toplevel 1049 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__List: Misc.Fatal_error 1050 + >> Fatal error: Stdlib__Lexing unbound at toplevel 1051 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Lexing: Misc.Fatal_error 1052 + >> Fatal error: Stdlib__Int64 unbound at toplevel 1053 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Int64: Misc.Fatal_error 1054 + >> Fatal error: Stdlib__Iarray unbound at toplevel 1055 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Iarray: Misc.Fatal_error 1056 + >> Fatal error: Stdlib__Map unbound at toplevel 1057 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Map: Misc.Fatal_error 1058 + >> Fatal error: Stdlib__MoreLabels unbound at toplevel 1059 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__MoreLabels: Misc.Fatal_error 1060 + >> Fatal error: Stdlib__Marshal unbound at toplevel 1061 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Marshal: Misc.Fatal_error 1062 + >> Fatal error: Stdlib__Nativeint unbound at toplevel 1063 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Nativeint: Misc.Fatal_error 1064 + >> Fatal error: Stdlib__Oo unbound at toplevel 1065 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Oo: Misc.Fatal_error 1066 + >> Fatal error: Stdlib__Obj unbound at toplevel 1067 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Obj: Misc.Fatal_error 1068 + >> Fatal error: Stdlib__Mutex unbound at toplevel 1069 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Mutex: Misc.Fatal_error 1070 + >> Fatal error: Stdlib__Out_channel unbound at toplevel 1071 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Out_channel: Misc.Fatal_error 1072 + >> Fatal error: Stdlib__Parsing unbound at toplevel 1073 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Parsing: Misc.Fatal_error 1074 + >> Fatal error: Stdlib__Pair unbound at toplevel 1075 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Pair: Misc.Fatal_error 1076 + >> Fatal error: Stdlib__Printexc unbound at toplevel 1077 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Printexc: Misc.Fatal_error 1078 + >> Fatal error: Stdlib__Queue unbound at toplevel 1079 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Queue: Misc.Fatal_error 1080 + >> Fatal error: Stdlib__Printf unbound at toplevel 1081 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Printf: Misc.Fatal_error 1082 + >> Fatal error: Stdlib__Pqueue unbound at toplevel 1083 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Pqueue: Misc.Fatal_error 1084 + >> Fatal error: Stdlib__Option unbound at toplevel 1085 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Option: Misc.Fatal_error 1086 + >> Fatal error: Stdlib__Repr unbound at toplevel 1087 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Repr: Misc.Fatal_error 1088 + >> Fatal error: Stdlib__Scanf unbound at toplevel 1089 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Scanf: Misc.Fatal_error 1090 + >> Fatal error: Stdlib__Result unbound at toplevel 1091 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Result: Misc.Fatal_error 1092 + >> Fatal error: Stdlib__Seq unbound at toplevel 1093 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Seq: Misc.Fatal_error 1094 + >> Fatal error: Stdlib__Stack unbound at toplevel 1095 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Stack: Misc.Fatal_error 1096 + >> Fatal error: Stdlib__Set unbound at toplevel 1097 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Set: Misc.Fatal_error 1098 + >> Fatal error: Stdlib__Semaphore unbound at toplevel 1099 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Semaphore: Misc.Fatal_error 1100 + >> Fatal error: Stdlib__String unbound at toplevel 1101 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__String: Misc.Fatal_error 1102 + >> Fatal error: Stdlib__Sys unbound at toplevel 1103 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 1104 + >> Fatal error: Stdlib__Sys unbound at toplevel 1105 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 1106 + >> Fatal error: Stdlib__Sys unbound at toplevel 1107 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 1108 + >> Fatal error: Stdlib__Sys unbound at toplevel 1109 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 1110 + >> Fatal error: Stdlib__StringLabels unbound at toplevel 1111 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__StringLabels: Misc.Fatal_error 1112 + >> Fatal error: Stdlib__Uchar unbound at toplevel 1113 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Uchar: Misc.Fatal_error 1114 + >> Fatal error: Stdlib__Weak unbound at toplevel 1115 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Weak: Misc.Fatal_error 1116 + >> Fatal error: Stdlib__Unit unbound at toplevel 1117 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Unit: Misc.Fatal_error 1118 + >> Fatal error: Stdlib__Type unbound at toplevel 1119 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Type: Misc.Fatal_error 1120 + >> Fatal error: Stdlib__StdLabels unbound at toplevel 1121 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__StdLabels: Misc.Fatal_error 1122 + >> Fatal error: Stdlib__Random unbound at toplevel 1123 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Random: Misc.Fatal_error 1124 + >> Fatal error: Stdlib__ListLabels unbound at toplevel 1125 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__ListLabels: Misc.Fatal_error 1126 + >> Fatal error: Stdlib__Either unbound at toplevel 1127 + node_env_test.js: [INFO] [ENV] could not capture Stdlib__Either: Misc.Fatal_error 227 1128 node_env_test.js: [INFO] setup() finished for env env2 1129 + node_env_test.js: [INFO] [ENV] with_env called for env2 (has_saved_env=true, runtime_values_count=0) 228 1130 229 1131 Line 1, characters 0-8: 230 1132 Error: Unbound value env2_val 1133 + node_env_test.js: [INFO] [ENV] Env.diff found 0 new idents for env2 231 1134 [PASS] new_env2_clean: Old value gone: # env2_val;; 1135 + node_env_test.js: [INFO] [ENV] with_env called for env2 (has_saved_env=true, runtime_values_count=0) 1136 + node_env_test.js: [INFO] [ENV] Env.diff found 1 new idents for env2 1137 + node_env_test.js: [INFO] [ENV] Capturing 1 new bindings for env env2 1138 + node_env_test.js: [INFO] [ENV] captured new_env2_val 232 1139 [PASS] new_env2_define: # let new_env2_val = 999;; 233 1140 val new_env2_val : int = 999 234 1141
+241 -11
test/node/node_mime_test.expected
··· 2 2 3 3 node_mime_test.js: [INFO] init() 4 4 Initializing findlib 5 - Parsed uri: lib/stdlib-shims/META 5 + Loaded findlib_index findlib_index: 10 META files, 0 universes 6 + Parsed uri: ./lib/stdlib-shims/META 6 7 Reading library: stdlib-shims 7 8 Number of children: 0 8 - Parsed uri: lib/sexplib0/META 9 + Parsed uri: ./lib/sexplib0/META 9 10 Reading library: sexplib0 10 11 Number of children: 0 11 - Parsed uri: lib/ppxlib/META 12 + Parsed uri: ./lib/ppxlib/META 12 13 Reading library: ppxlib 13 14 Number of children: 11 14 15 Found child: __private__ ··· 47 48 Found child: traverse_builtins 48 49 Reading library: ppxlib.traverse_builtins 49 50 Number of children: 0 50 - Parsed uri: lib/ppx_deriving/META 51 + Parsed uri: ./lib/ppx_deriving/META 51 52 Reading library: ppx_deriving 52 53 Number of children: 12 53 54 Found child: api ··· 86 87 Found child: std 87 88 Reading library: ppx_deriving.std 88 89 Number of children: 0 89 - Parsed uri: lib/ppx_derivers/META 90 + Parsed uri: ./lib/ppx_derivers/META 90 91 Reading library: ppx_derivers 91 92 Number of children: 0 92 - Parsed uri: lib/ocaml_intrinsics_kernel/META 93 + Parsed uri: ./lib/ocaml_intrinsics_kernel/META 93 94 Reading library: ocaml_intrinsics_kernel 94 95 Number of children: 0 95 - Parsed uri: lib/ocaml/stdlib/META 96 + Parsed uri: ./lib/ocaml/stdlib/META 96 97 Reading library: stdlib 97 98 Number of children: 0 98 - Parsed uri: lib/ocaml/compiler-libs/META 99 + Parsed uri: ./lib/ocaml/compiler-libs/META 99 100 Reading library: compiler-libs 100 101 Number of children: 5 101 102 Found child: common ··· 113 114 Found child: native-toplevel 114 115 Reading library: compiler-libs.native-toplevel 115 116 Number of children: 0 116 - Parsed uri: lib/ocaml-compiler-libs/META 117 + Parsed uri: ./lib/ocaml-compiler-libs/META 117 118 Reading library: ocaml-compiler-libs 118 119 Number of children: 5 119 120 Found child: bytecomp ··· 131 132 Found child: toplevel 132 133 Reading library: ocaml-compiler-libs.toplevel 133 134 Number of children: 0 134 - Parsed uri: lib/base/META 135 + Parsed uri: ./lib/base/META 135 136 Reading library: base 136 137 Number of children: 3 137 138 Found child: base_internalhash_types ··· 144 145 Reading library: base.shadow_stdlib 145 146 Number of children: 0 146 147 node_mime_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/ocaml/ 147 - node_mime_test.js: [INFO] toplevel modules: CamlinternalFormat, CamlinternalLazy, CamlinternalFormatBasics, CamlinternalMod, Std_exit, Stdlib, CamlinternalOO 148 + node_mime_test.js: [INFO] toplevel modules: Std_exit, CamlinternalFormatBasics, CamlinternalLazy, CamlinternalMod, Stdlib, CamlinternalOO, CamlinternalFormat 148 149 node_mime_test.js: [INFO] init() finished 149 150 node_mime_test.js: [INFO] setup() for env default... 151 + node_mime_test.js: [INFO] [ENV] with_env called for default (has_saved_env=false, runtime_values_count=0) 150 152 node_mime_test.js: [INFO] Fetching stdlib__Format.cmi 151 153 152 154 node_mime_test.js: [INFO] Fetching stdlib__Sys.cmi ··· 154 156 error while evaluating #enable "pretty";; 155 157 error while evaluating #disable "shortvar";; 156 158 node_mime_test.js: [INFO] Setup complete 159 + node_mime_test.js: [INFO] [ENV] Env.diff found 92 new idents for default 160 + node_mime_test.js: [INFO] [ENV] Capturing 92 new bindings for env default 161 + >> Fatal error: Continuation_already_taken unbound at toplevel 162 + node_mime_test.js: [INFO] [ENV] could not capture Continuation_already_taken: Misc.Fatal_error 163 + >> Fatal error: Division_by_zero unbound at toplevel 164 + node_mime_test.js: [INFO] [ENV] could not capture Division_by_zero: Misc.Fatal_error 165 + >> Fatal error: Failure unbound at toplevel 166 + node_mime_test.js: [INFO] [ENV] could not capture Failure: Misc.Fatal_error 167 + >> Fatal error: Match_failure unbound at toplevel 168 + node_mime_test.js: [INFO] [ENV] could not capture Match_failure: Misc.Fatal_error 169 + >> Fatal error: Invalid_argument unbound at toplevel 170 + node_mime_test.js: [INFO] [ENV] could not capture Invalid_argument: Misc.Fatal_error 171 + >> Fatal error: End_of_file unbound at toplevel 172 + node_mime_test.js: [INFO] [ENV] could not capture End_of_file: Misc.Fatal_error 173 + >> Fatal error: Assert_failure unbound at toplevel 174 + node_mime_test.js: [INFO] [ENV] could not capture Assert_failure: Misc.Fatal_error 175 + >> Fatal error: Not_found unbound at toplevel 176 + node_mime_test.js: [INFO] [ENV] could not capture Not_found: Misc.Fatal_error 177 + >> Fatal error: Out_of_memory unbound at toplevel 178 + node_mime_test.js: [INFO] [ENV] could not capture Out_of_memory: Misc.Fatal_error 179 + >> Fatal error: Sys_blocked_io unbound at toplevel 180 + node_mime_test.js: [INFO] [ENV] could not capture Sys_blocked_io: Misc.Fatal_error 181 + >> Fatal error: Undefined_recursive_module unbound at toplevel 182 + node_mime_test.js: [INFO] [ENV] could not capture Undefined_recursive_module: Misc.Fatal_error 183 + >> Fatal error: Sys_error unbound at toplevel 184 + node_mime_test.js: [INFO] [ENV] could not capture Sys_error: Misc.Fatal_error 185 + >> Fatal error: Stack_overflow unbound at toplevel 186 + node_mime_test.js: [INFO] [ENV] could not capture Stack_overflow: Misc.Fatal_error 187 + >> Fatal error: CamlinternalFormat unbound at toplevel 188 + node_mime_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 189 + >> Fatal error: CamlinternalLazy unbound at toplevel 190 + node_mime_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 191 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 192 + node_mime_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 193 + >> Fatal error: CamlinternalOO unbound at toplevel 194 + node_mime_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 195 + >> Fatal error: Stdlib unbound at toplevel 196 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 197 + >> Fatal error: Std_exit unbound at toplevel 198 + node_mime_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 199 + >> Fatal error: CamlinternalMod unbound at toplevel 200 + node_mime_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 201 + >> Fatal error: CamlinternalFormat unbound at toplevel 202 + node_mime_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 203 + >> Fatal error: CamlinternalLazy unbound at toplevel 204 + node_mime_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 205 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 206 + node_mime_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 207 + >> Fatal error: CamlinternalOO unbound at toplevel 208 + node_mime_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 209 + >> Fatal error: Stdlib unbound at toplevel 210 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 211 + >> Fatal error: Std_exit unbound at toplevel 212 + node_mime_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 213 + >> Fatal error: CamlinternalMod unbound at toplevel 214 + node_mime_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 215 + >> Fatal error: Stdlib__Array unbound at toplevel 216 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Array: Misc.Fatal_error 217 + >> Fatal error: Stdlib__Atomic unbound at toplevel 218 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Atomic: Misc.Fatal_error 219 + >> Fatal error: Stdlib__ArrayLabels unbound at toplevel 220 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__ArrayLabels: Misc.Fatal_error 221 + >> Fatal error: Stdlib__Bool unbound at toplevel 222 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Bool: Misc.Fatal_error 223 + >> Fatal error: Stdlib__Bytes unbound at toplevel 224 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Bytes: Misc.Fatal_error 225 + >> Fatal error: Stdlib__Buffer unbound at toplevel 226 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Buffer: Misc.Fatal_error 227 + >> Fatal error: Stdlib__Bigarray unbound at toplevel 228 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Bigarray: Misc.Fatal_error 229 + >> Fatal error: Stdlib__Arg unbound at toplevel 230 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Arg: Misc.Fatal_error 231 + >> Fatal error: Stdlib__Callback unbound at toplevel 232 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Callback: Misc.Fatal_error 233 + >> Fatal error: Stdlib__Complex unbound at toplevel 234 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Complex: Misc.Fatal_error 235 + >> Fatal error: Stdlib__Char unbound at toplevel 236 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Char: Misc.Fatal_error 237 + >> Fatal error: Stdlib__Digest unbound at toplevel 238 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Digest: Misc.Fatal_error 239 + >> Fatal error: Stdlib__Dynarray unbound at toplevel 240 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Dynarray: Misc.Fatal_error 241 + >> Fatal error: Stdlib__Domain unbound at toplevel 242 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Domain: Misc.Fatal_error 243 + >> Fatal error: Stdlib__Condition unbound at toplevel 244 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Condition: Misc.Fatal_error 245 + >> Fatal error: Stdlib__Either unbound at toplevel 246 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Either: Misc.Fatal_error 247 + >> Fatal error: Stdlib__Filename unbound at toplevel 248 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Filename: Misc.Fatal_error 249 + >> Fatal error: Stdlib__Ephemeron unbound at toplevel 250 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Ephemeron: Misc.Fatal_error 251 + >> Fatal error: Stdlib__Format unbound at toplevel 252 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 253 + >> Fatal error: Stdlib__Gc unbound at toplevel 254 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Gc: Misc.Fatal_error 255 + >> Fatal error: Stdlib__Fun unbound at toplevel 256 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Fun: Misc.Fatal_error 257 + >> Fatal error: Stdlib__Float unbound at toplevel 258 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Float: Misc.Fatal_error 259 + >> Fatal error: Stdlib__Effect unbound at toplevel 260 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Effect: Misc.Fatal_error 261 + >> Fatal error: Stdlib__BytesLabels unbound at toplevel 262 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__BytesLabels: Misc.Fatal_error 263 + >> Fatal error: Stdlib__Iarray unbound at toplevel 264 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Iarray: Misc.Fatal_error 265 + >> Fatal error: Stdlib__Int unbound at toplevel 266 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Int: Misc.Fatal_error 267 + >> Fatal error: Stdlib__In_channel unbound at toplevel 268 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__In_channel: Misc.Fatal_error 269 + >> Fatal error: Stdlib__Int64 unbound at toplevel 270 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Int64: Misc.Fatal_error 271 + >> Fatal error: Stdlib__Lexing unbound at toplevel 272 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Lexing: Misc.Fatal_error 273 + >> Fatal error: Stdlib__Lazy unbound at toplevel 274 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Lazy: Misc.Fatal_error 275 + >> Fatal error: Stdlib__Int32 unbound at toplevel 276 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Int32: Misc.Fatal_error 277 + >> Fatal error: Stdlib__ListLabels unbound at toplevel 278 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__ListLabels: Misc.Fatal_error 279 + >> Fatal error: Stdlib__Marshal unbound at toplevel 280 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Marshal: Misc.Fatal_error 281 + >> Fatal error: Stdlib__Map unbound at toplevel 282 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Map: Misc.Fatal_error 283 + >> Fatal error: Stdlib__Mutex unbound at toplevel 284 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Mutex: Misc.Fatal_error 285 + >> Fatal error: Stdlib__Obj unbound at toplevel 286 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Obj: Misc.Fatal_error 287 + >> Fatal error: Stdlib__Nativeint unbound at toplevel 288 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Nativeint: Misc.Fatal_error 289 + >> Fatal error: Stdlib__MoreLabels unbound at toplevel 290 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__MoreLabels: Misc.Fatal_error 291 + >> Fatal error: Stdlib__List unbound at toplevel 292 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__List: Misc.Fatal_error 293 + >> Fatal error: Stdlib__Option unbound at toplevel 294 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Option: Misc.Fatal_error 295 + >> Fatal error: Stdlib__Pair unbound at toplevel 296 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Pair: Misc.Fatal_error 297 + >> Fatal error: Stdlib__Out_channel unbound at toplevel 298 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Out_channel: Misc.Fatal_error 299 + >> Fatal error: Stdlib__Pqueue unbound at toplevel 300 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Pqueue: Misc.Fatal_error 301 + >> Fatal error: Stdlib__Printf unbound at toplevel 302 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Printf: Misc.Fatal_error 303 + >> Fatal error: Stdlib__Printexc unbound at toplevel 304 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Printexc: Misc.Fatal_error 305 + >> Fatal error: Stdlib__Parsing unbound at toplevel 306 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Parsing: Misc.Fatal_error 307 + >> Fatal error: Stdlib__Random unbound at toplevel 308 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Random: Misc.Fatal_error 309 + >> Fatal error: Stdlib__Result unbound at toplevel 310 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Result: Misc.Fatal_error 311 + >> Fatal error: Stdlib__Repr unbound at toplevel 312 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Repr: Misc.Fatal_error 313 + >> Fatal error: Stdlib__Semaphore unbound at toplevel 314 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Semaphore: Misc.Fatal_error 315 + >> Fatal error: Stdlib__Set unbound at toplevel 316 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Set: Misc.Fatal_error 317 + >> Fatal error: Stdlib__Seq unbound at toplevel 318 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Seq: Misc.Fatal_error 319 + >> Fatal error: Stdlib__Scanf unbound at toplevel 320 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Scanf: Misc.Fatal_error 321 + >> Fatal error: Stdlib__Queue unbound at toplevel 322 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Queue: Misc.Fatal_error 323 + >> Fatal error: Stdlib__StdLabels unbound at toplevel 324 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__StdLabels: Misc.Fatal_error 325 + >> Fatal error: Stdlib__StringLabels unbound at toplevel 326 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__StringLabels: Misc.Fatal_error 327 + >> Fatal error: Stdlib__String unbound at toplevel 328 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__String: Misc.Fatal_error 329 + >> Fatal error: Stdlib__Type unbound at toplevel 330 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Type: Misc.Fatal_error 331 + >> Fatal error: Stdlib__Weak unbound at toplevel 332 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Weak: Misc.Fatal_error 333 + >> Fatal error: Stdlib__Unit unbound at toplevel 334 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Unit: Misc.Fatal_error 335 + >> Fatal error: Stdlib__Uchar unbound at toplevel 336 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Uchar: Misc.Fatal_error 337 + >> Fatal error: Stdlib__Sys unbound at toplevel 338 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 339 + >> Fatal error: Stdlib__Stack unbound at toplevel 340 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Stack: Misc.Fatal_error 341 + >> Fatal error: Stdlib__Oo unbound at toplevel 342 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Oo: Misc.Fatal_error 343 + >> Fatal error: Stdlib__Hashtbl unbound at toplevel 344 + node_mime_test.js: [INFO] [ENV] could not capture Stdlib__Hashtbl: Misc.Fatal_error 157 345 node_mime_test.js: [INFO] setup() finished for env default 158 346 --- Section 1: exec_result Has mime_vals Field --- 347 + node_mime_test.js: [INFO] execute() for env_id= 348 + node_mime_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=0) 349 + node_mime_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 350 + node_mime_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 351 + node_mime_test.js: [INFO] [ENV] captured x 352 + node_mime_test.js: [INFO] execute() done for env_id= 159 353 [PASS] has_mime_vals_field: exec_result has mime_vals field 160 354 [PASS] mime_vals_is_list: mime_vals is a list (length=0) 161 355 [PASS] mime_vals_empty_no_output: mime_vals is empty when no MIME output ··· 167 361 [PASS] encoding_base64: Base64 variant works 168 362 169 363 --- Section 3: Multiple Executions --- 364 + node_mime_test.js: [INFO] execute() for env_id= 365 + node_mime_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=1) 366 + node_mime_test.js: [INFO] [ENV] Restoring 1 runtime values for env default 367 + node_mime_test.js: [INFO] [ENV] setvalue x 368 + node_mime_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 369 + node_mime_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 370 + node_mime_test.js: [INFO] [ENV] captured a 371 + node_mime_test.js: [INFO] execute() done for env_id= 372 + node_mime_test.js: [INFO] execute() for env_id= 373 + node_mime_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=2) 374 + node_mime_test.js: [INFO] [ENV] Restoring 2 runtime values for env default 375 + node_mime_test.js: [INFO] [ENV] setvalue a 376 + node_mime_test.js: [INFO] [ENV] setvalue x 377 + node_mime_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 378 + node_mime_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 379 + node_mime_test.js: [INFO] [ENV] captured b 380 + node_mime_test.js: [INFO] execute() done for env_id= 381 + node_mime_test.js: [INFO] execute() for env_id= 382 + node_mime_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=3) 383 + node_mime_test.js: [INFO] [ENV] Restoring 3 runtime values for env default 384 + node_mime_test.js: [INFO] [ENV] setvalue a 385 + node_mime_test.js: [INFO] [ENV] setvalue b 386 + node_mime_test.js: [INFO] [ENV] setvalue x 387 + node_mime_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 388 + node_mime_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 389 + node_mime_test.js: [INFO] [ENV] captured c 390 + node_mime_test.js: [INFO] execute() done for env_id= 170 391 [PASS] r1_mime_empty: First exec: mime_vals empty 171 392 [PASS] r2_mime_empty: Second exec: mime_vals empty 172 393 [PASS] r3_mime_empty: Third exec: mime_vals empty 173 394 174 395 --- Section 4: exec_toplevel Has mime_vals --- 396 + node_mime_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=4) 397 + node_mime_test.js: [INFO] [ENV] Restoring 4 runtime values for env default 398 + node_mime_test.js: [INFO] [ENV] setvalue a 399 + node_mime_test.js: [INFO] [ENV] setvalue b 400 + node_mime_test.js: [INFO] [ENV] setvalue c 401 + node_mime_test.js: [INFO] [ENV] setvalue x 402 + node_mime_test.js: [INFO] [ENV] Env.diff found 1 new idents for default 403 + node_mime_test.js: [INFO] [ENV] Capturing 1 new bindings for env default 404 + node_mime_test.js: [INFO] [ENV] captured z 175 405 [PASS] toplevel_has_mime_vals: exec_toplevel_result has mime_vals field 176 406 [PASS] toplevel_mime_vals_list: toplevel mime_vals is a list (length=0) 177 407
+207 -95
test/node/node_ppx_test.expected
··· 2 2 3 3 node_ppx_test.js: [INFO] init() 4 4 Initializing findlib 5 - Parsed uri: lib/stdlib-shims/META 5 + Loaded findlib_index findlib_index: 10 META files, 0 universes 6 + Parsed uri: ./lib/stdlib-shims/META 6 7 Reading library: stdlib-shims 7 8 Number of children: 0 8 - Parsed uri: lib/sexplib0/META 9 + Parsed uri: ./lib/sexplib0/META 9 10 Reading library: sexplib0 10 11 Number of children: 0 11 - Parsed uri: lib/ppxlib/META 12 + Parsed uri: ./lib/ppxlib/META 12 13 Reading library: ppxlib 13 14 Number of children: 11 14 15 Found child: __private__ ··· 47 48 Found child: traverse_builtins 48 49 Reading library: ppxlib.traverse_builtins 49 50 Number of children: 0 50 - Parsed uri: lib/ppx_deriving/META 51 + Parsed uri: ./lib/ppx_deriving/META 51 52 Reading library: ppx_deriving 52 53 Number of children: 12 53 54 Found child: api ··· 86 87 Found child: std 87 88 Reading library: ppx_deriving.std 88 89 Number of children: 0 89 - Parsed uri: lib/ppx_derivers/META 90 + Parsed uri: ./lib/ppx_derivers/META 90 91 Reading library: ppx_derivers 91 92 Number of children: 0 92 - Parsed uri: lib/ocaml_intrinsics_kernel/META 93 + Parsed uri: ./lib/ocaml_intrinsics_kernel/META 93 94 Reading library: ocaml_intrinsics_kernel 94 95 Number of children: 0 95 - Parsed uri: lib/ocaml/stdlib/META 96 + Parsed uri: ./lib/ocaml/stdlib/META 96 97 Reading library: stdlib 97 98 Number of children: 0 98 - Parsed uri: lib/ocaml/compiler-libs/META 99 + Parsed uri: ./lib/ocaml/compiler-libs/META 99 100 Reading library: compiler-libs 100 101 Number of children: 5 101 102 Found child: common ··· 113 114 Found child: native-toplevel 114 115 Reading library: compiler-libs.native-toplevel 115 116 Number of children: 0 116 - Parsed uri: lib/ocaml-compiler-libs/META 117 + Parsed uri: ./lib/ocaml-compiler-libs/META 117 118 Reading library: ocaml-compiler-libs 118 119 Number of children: 5 119 120 Found child: bytecomp ··· 131 132 Found child: toplevel 132 133 Reading library: ocaml-compiler-libs.toplevel 133 134 Number of children: 0 134 - Parsed uri: lib/base/META 135 + Parsed uri: ./lib/base/META 135 136 Reading library: base 136 137 Number of children: 3 137 138 Found child: base_internalhash_types ··· 144 145 Reading library: base.shadow_stdlib 145 146 Number of children: 0 146 147 node_ppx_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/ocaml/ 147 - node_ppx_test.js: [INFO] toplevel modules: CamlinternalFormat, CamlinternalLazy, CamlinternalFormatBasics, CamlinternalMod, Std_exit, Stdlib, CamlinternalOO 148 + node_ppx_test.js: [INFO] toplevel modules: Std_exit, CamlinternalFormatBasics, CamlinternalLazy, CamlinternalMod, Stdlib, CamlinternalOO, CamlinternalFormat 148 149 node_ppx_test.js: [INFO] init() finished 149 150 node_ppx_test.js: [INFO] setup() for env default... 151 + node_ppx_test.js: [INFO] [ENV] with_env called for default (has_saved_env=false, runtime_values_count=0) 150 152 node_ppx_test.js: [INFO] Fetching stdlib__Format.cmi 151 153 152 154 node_ppx_test.js: [INFO] Fetching stdlib__Sys.cmi ··· 154 156 error while evaluating #enable "pretty";; 155 157 error while evaluating #disable "shortvar";; 156 158 node_ppx_test.js: [INFO] Setup complete 159 + node_ppx_test.js: [INFO] [ENV] Env.diff found 92 new idents for default 160 + node_ppx_test.js: [INFO] [ENV] Capturing 92 new bindings for env default 161 + >> Fatal error: Continuation_already_taken unbound at toplevel 162 + node_ppx_test.js: [INFO] [ENV] could not capture Continuation_already_taken: Misc.Fatal_error 163 + >> Fatal error: Division_by_zero unbound at toplevel 164 + node_ppx_test.js: [INFO] [ENV] could not capture Division_by_zero: Misc.Fatal_error 165 + >> Fatal error: Failure unbound at toplevel 166 + node_ppx_test.js: [INFO] [ENV] could not capture Failure: Misc.Fatal_error 167 + >> Fatal error: Match_failure unbound at toplevel 168 + node_ppx_test.js: [INFO] [ENV] could not capture Match_failure: Misc.Fatal_error 169 + >> Fatal error: Invalid_argument unbound at toplevel 170 + node_ppx_test.js: [INFO] [ENV] could not capture Invalid_argument: Misc.Fatal_error 171 + >> Fatal error: End_of_file unbound at toplevel 172 + node_ppx_test.js: [INFO] [ENV] could not capture End_of_file: Misc.Fatal_error 173 + >> Fatal error: Assert_failure unbound at toplevel 174 + node_ppx_test.js: [INFO] [ENV] could not capture Assert_failure: Misc.Fatal_error 175 + >> Fatal error: Not_found unbound at toplevel 176 + node_ppx_test.js: [INFO] [ENV] could not capture Not_found: Misc.Fatal_error 177 + >> Fatal error: Out_of_memory unbound at toplevel 178 + node_ppx_test.js: [INFO] [ENV] could not capture Out_of_memory: Misc.Fatal_error 179 + >> Fatal error: Sys_blocked_io unbound at toplevel 180 + node_ppx_test.js: [INFO] [ENV] could not capture Sys_blocked_io: Misc.Fatal_error 181 + >> Fatal error: Undefined_recursive_module unbound at toplevel 182 + node_ppx_test.js: [INFO] [ENV] could not capture Undefined_recursive_module: Misc.Fatal_error 183 + >> Fatal error: Sys_error unbound at toplevel 184 + node_ppx_test.js: [INFO] [ENV] could not capture Sys_error: Misc.Fatal_error 185 + >> Fatal error: Stack_overflow unbound at toplevel 186 + node_ppx_test.js: [INFO] [ENV] could not capture Stack_overflow: Misc.Fatal_error 187 + >> Fatal error: CamlinternalFormat unbound at toplevel 188 + node_ppx_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 189 + >> Fatal error: CamlinternalLazy unbound at toplevel 190 + node_ppx_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 191 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 192 + node_ppx_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 193 + >> Fatal error: CamlinternalOO unbound at toplevel 194 + node_ppx_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 195 + >> Fatal error: Stdlib unbound at toplevel 196 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 197 + >> Fatal error: Std_exit unbound at toplevel 198 + node_ppx_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 199 + >> Fatal error: CamlinternalMod unbound at toplevel 200 + node_ppx_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 201 + >> Fatal error: CamlinternalFormat unbound at toplevel 202 + node_ppx_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 203 + >> Fatal error: CamlinternalLazy unbound at toplevel 204 + node_ppx_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 205 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 206 + node_ppx_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 207 + >> Fatal error: CamlinternalOO unbound at toplevel 208 + node_ppx_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 209 + >> Fatal error: Stdlib unbound at toplevel 210 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 211 + >> Fatal error: Std_exit unbound at toplevel 212 + node_ppx_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 213 + >> Fatal error: CamlinternalMod unbound at toplevel 214 + node_ppx_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 215 + >> Fatal error: Stdlib__Array unbound at toplevel 216 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Array: Misc.Fatal_error 217 + >> Fatal error: Stdlib__Atomic unbound at toplevel 218 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Atomic: Misc.Fatal_error 219 + >> Fatal error: Stdlib__ArrayLabels unbound at toplevel 220 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__ArrayLabels: Misc.Fatal_error 221 + >> Fatal error: Stdlib__Bool unbound at toplevel 222 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Bool: Misc.Fatal_error 223 + >> Fatal error: Stdlib__Bytes unbound at toplevel 224 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Bytes: Misc.Fatal_error 225 + >> Fatal error: Stdlib__Buffer unbound at toplevel 226 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Buffer: Misc.Fatal_error 227 + >> Fatal error: Stdlib__Bigarray unbound at toplevel 228 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Bigarray: Misc.Fatal_error 229 + >> Fatal error: Stdlib__Arg unbound at toplevel 230 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Arg: Misc.Fatal_error 231 + >> Fatal error: Stdlib__Callback unbound at toplevel 232 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Callback: Misc.Fatal_error 233 + >> Fatal error: Stdlib__Complex unbound at toplevel 234 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Complex: Misc.Fatal_error 235 + >> Fatal error: Stdlib__Char unbound at toplevel 236 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Char: Misc.Fatal_error 237 + >> Fatal error: Stdlib__Digest unbound at toplevel 238 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Digest: Misc.Fatal_error 239 + >> Fatal error: Stdlib__Dynarray unbound at toplevel 240 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Dynarray: Misc.Fatal_error 241 + >> Fatal error: Stdlib__Domain unbound at toplevel 242 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Domain: Misc.Fatal_error 243 + >> Fatal error: Stdlib__Condition unbound at toplevel 244 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Condition: Misc.Fatal_error 245 + >> Fatal error: Stdlib__Either unbound at toplevel 246 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Either: Misc.Fatal_error 247 + >> Fatal error: Stdlib__Filename unbound at toplevel 248 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Filename: Misc.Fatal_error 249 + >> Fatal error: Stdlib__Ephemeron unbound at toplevel 250 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Ephemeron: Misc.Fatal_error 251 + >> Fatal error: Stdlib__Format unbound at toplevel 252 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 253 + >> Fatal error: Stdlib__Gc unbound at toplevel 254 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Gc: Misc.Fatal_error 255 + >> Fatal error: Stdlib__Fun unbound at toplevel 256 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Fun: Misc.Fatal_error 257 + >> Fatal error: Stdlib__Float unbound at toplevel 258 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Float: Misc.Fatal_error 259 + >> Fatal error: Stdlib__Effect unbound at toplevel 260 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Effect: Misc.Fatal_error 261 + >> Fatal error: Stdlib__BytesLabels unbound at toplevel 262 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__BytesLabels: Misc.Fatal_error 263 + >> Fatal error: Stdlib__Iarray unbound at toplevel 264 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Iarray: Misc.Fatal_error 265 + >> Fatal error: Stdlib__Int unbound at toplevel 266 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Int: Misc.Fatal_error 267 + >> Fatal error: Stdlib__In_channel unbound at toplevel 268 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__In_channel: Misc.Fatal_error 269 + >> Fatal error: Stdlib__Int64 unbound at toplevel 270 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Int64: Misc.Fatal_error 271 + >> Fatal error: Stdlib__Lexing unbound at toplevel 272 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Lexing: Misc.Fatal_error 273 + >> Fatal error: Stdlib__Lazy unbound at toplevel 274 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Lazy: Misc.Fatal_error 275 + >> Fatal error: Stdlib__Int32 unbound at toplevel 276 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Int32: Misc.Fatal_error 277 + >> Fatal error: Stdlib__ListLabels unbound at toplevel 278 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__ListLabels: Misc.Fatal_error 279 + >> Fatal error: Stdlib__Marshal unbound at toplevel 280 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Marshal: Misc.Fatal_error 281 + >> Fatal error: Stdlib__Map unbound at toplevel 282 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Map: Misc.Fatal_error 283 + >> Fatal error: Stdlib__Mutex unbound at toplevel 284 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Mutex: Misc.Fatal_error 285 + >> Fatal error: Stdlib__Obj unbound at toplevel 286 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Obj: Misc.Fatal_error 287 + >> Fatal error: Stdlib__Nativeint unbound at toplevel 288 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Nativeint: Misc.Fatal_error 289 + >> Fatal error: Stdlib__MoreLabels unbound at toplevel 290 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__MoreLabels: Misc.Fatal_error 291 + >> Fatal error: Stdlib__List unbound at toplevel 292 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__List: Misc.Fatal_error 293 + >> Fatal error: Stdlib__Option unbound at toplevel 294 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Option: Misc.Fatal_error 295 + >> Fatal error: Stdlib__Pair unbound at toplevel 296 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Pair: Misc.Fatal_error 297 + >> Fatal error: Stdlib__Out_channel unbound at toplevel 298 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Out_channel: Misc.Fatal_error 299 + >> Fatal error: Stdlib__Pqueue unbound at toplevel 300 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Pqueue: Misc.Fatal_error 301 + >> Fatal error: Stdlib__Printf unbound at toplevel 302 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Printf: Misc.Fatal_error 303 + >> Fatal error: Stdlib__Printexc unbound at toplevel 304 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Printexc: Misc.Fatal_error 305 + >> Fatal error: Stdlib__Parsing unbound at toplevel 306 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Parsing: Misc.Fatal_error 307 + >> Fatal error: Stdlib__Random unbound at toplevel 308 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Random: Misc.Fatal_error 309 + >> Fatal error: Stdlib__Result unbound at toplevel 310 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Result: Misc.Fatal_error 311 + >> Fatal error: Stdlib__Repr unbound at toplevel 312 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Repr: Misc.Fatal_error 313 + >> Fatal error: Stdlib__Semaphore unbound at toplevel 314 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Semaphore: Misc.Fatal_error 315 + >> Fatal error: Stdlib__Set unbound at toplevel 316 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Set: Misc.Fatal_error 317 + >> Fatal error: Stdlib__Seq unbound at toplevel 318 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Seq: Misc.Fatal_error 319 + >> Fatal error: Stdlib__Scanf unbound at toplevel 320 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Scanf: Misc.Fatal_error 321 + >> Fatal error: Stdlib__Queue unbound at toplevel 322 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Queue: Misc.Fatal_error 323 + >> Fatal error: Stdlib__StdLabels unbound at toplevel 324 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__StdLabels: Misc.Fatal_error 325 + >> Fatal error: Stdlib__StringLabels unbound at toplevel 326 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__StringLabels: Misc.Fatal_error 327 + >> Fatal error: Stdlib__String unbound at toplevel 328 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__String: Misc.Fatal_error 329 + >> Fatal error: Stdlib__Type unbound at toplevel 330 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Type: Misc.Fatal_error 331 + >> Fatal error: Stdlib__Weak unbound at toplevel 332 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Weak: Misc.Fatal_error 333 + >> Fatal error: Stdlib__Unit unbound at toplevel 334 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Unit: Misc.Fatal_error 335 + >> Fatal error: Stdlib__Uchar unbound at toplevel 336 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Uchar: Misc.Fatal_error 337 + >> Fatal error: Stdlib__Sys unbound at toplevel 338 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 339 + >> Fatal error: Stdlib__Stack unbound at toplevel 340 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Stack: Misc.Fatal_error 341 + >> Fatal error: Stdlib__Oo unbound at toplevel 342 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Oo: Misc.Fatal_error 343 + >> Fatal error: Stdlib__Hashtbl unbound at toplevel 344 + node_ppx_test.js: [INFO] [ENV] could not capture Stdlib__Hashtbl: Misc.Fatal_error 157 345 node_ppx_test.js: [INFO] setup() finished for env default 158 346 --- Loading PPX dynamically --- 347 + node_ppx_test.js: [INFO] [ENV] with_env called for default (has_saved_env=true, runtime_values_count=0) 159 348 node_ppx_test.js: [INFO] Custom #require: loading ppx_deriving.show 160 349 Loading package ppx_deriving.show 161 350 lib.dir: show 162 351 Loading package ppx_deriving.runtime 163 352 lib.dir: runtime 164 - uri: lib/ppx_deriving/runtime/dynamic_cmis.json 165 - importScripts: lib/ppx_deriving/runtime/ppx_deriving_runtime.cma.js 353 + uri: ./lib/ppx_deriving/runtime/dynamic_cmis.json 354 + importScripts: ./lib/ppx_deriving/runtime/ppx_deriving_runtime.cma.js 166 355 Finished loading package ppx_deriving.runtime 167 356 Loading package ppx_deriving 168 357 lib.dir: None 169 - uri: lib/ppx_deriving/dynamic_cmis.json 170 - Failed to unmarshal dynamic_cms from url lib/ppx_deriving/dynamic_cmis.json: Failed to fetch dynamic cmis 171 - uri: lib/ppx_deriving/show/dynamic_cmis.json 172 - importScripts: lib/ppx_deriving/show/ppx_deriving_show.cma.js 173 - Finished loading package ppx_deriving.show 174 - node_ppx_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/ppx_deriving/show/ 175 - node_ppx_test.js: [INFO] toplevel modules: Ppx_deriving_show 176 - node_ppx_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/ppx_deriving/runtime/ 177 - node_ppx_test.js: [INFO] toplevel modules: Ppx_deriving_runtime 178 - node_ppx_test.js: [INFO] Custom #require: ppx_deriving.show loaded 179 - [PASS] load_ppx_show: ppx_deriving.show loaded 180 - node_ppx_test.js: [INFO] Custom #require: loading ppx_deriving.eq 181 - Loading package ppx_deriving.eq 182 - lib.dir: eq 183 - Loading package ppx_deriving 184 - lib.dir: None 185 - uri: lib/ppx_deriving/dynamic_cmis.json 186 - Failed to unmarshal dynamic_cms from url lib/ppx_deriving/dynamic_cmis.json: Failed to fetch dynamic cmis 187 - uri: lib/ppx_deriving/eq/dynamic_cmis.json 188 - importScripts: lib/ppx_deriving/eq/ppx_deriving_eq.cma.js 189 - Finished loading package ppx_deriving.eq 190 - node_ppx_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/ppx_deriving/eq/ 191 - node_ppx_test.js: [INFO] toplevel modules: Ppx_deriving_eq 192 - node_ppx_test.js: [INFO] Custom #require: ppx_deriving.eq loaded 193 - [PASS] load_ppx_eq: ppx_deriving.eq loaded 194 - 195 - --- Section 1: ppx_deriving.show --- 196 - [PASS] show_type_defined: type color defined 197 - [PASS] show_pp_generated: pp_color generated 198 - [PASS] show_fn_generated: show_color generated 199 - [PASS] show_fn_works: # show_color Red;; 200 - - : Ppx_deriving_runtime.string = "Red" 201 - [PASS] show_record_type: point type defined 202 - [PASS] show_record_pp: pp_point generated 203 - [PASS] show_record_works: # show_point { x = 10; y = 20 };; 204 - - : Ppx_deriving_runtime 205 - 206 - --- Section 2: ppx_deriving.eq --- 207 - [PASS] eq_type_defined: status type defined 208 - [PASS] eq_fn_generated: equal_status generated 209 - [PASS] eq_same_true: # equal_status Active Active;; 210 - - : Ppx_deriving_runtime.bool = true 211 - [PASS] eq_diff_false: # equal_status Active Inactive;; 212 - - : Ppx_deriving_runtime.bool = false 213 - 214 - --- Section 3: Combined Derivers --- 215 - [PASS] combined_type: expr type defined 216 - [PASS] combined_pp: pp_expr generated 217 - [PASS] combined_eq: equal_expr generated 218 - [PASS] combined_value: # let e1 = Add (Num 1, Num 2);; 219 - val e1 : expr = Add (Num 1, Num 2) 220 - [PASS] combined_show_works: # show_expr e1;; 221 - - : Ppx_deriving_runtime.string = "(Add ((Num 1), (Num 2)))" 222 - [PASS] combined_eq_self: # equal_expr e1 e1;; 223 - - : Ppx_deriving_runtime.bool = true 224 - [PASS] combined_eq_diff: # equal_expr e1 (Num 1);; 225 - - : Ppx_deriving_runtime.bool = false 226 - 227 - --- Section 4: Basic Code Still Works --- 228 - [PASS] basic_arithmetic: # let x = 1 + 2;; 229 - val x : int = 3 230 - [PASS] recursive_fn: # let rec fib n = if n <= 1 then n else fib (n-1) + fib (n-2);; 231 - val fib : int -> int = <fun> 232 - [PASS] fib_result: # fib 10;; 233 - - : int = 55 234 - 235 - --- Section 5: Module Support --- 236 - [PASS] module_with_deriving: # module M = struct type t = A | B [@@deriving show] end;; 237 - module M : 238 - sig 239 - type t = A | B 240 - val pp : 241 - Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit 242 - val show : t -> Ppx_deriving_runtime.string 243 - end 244 - Line 1, characters 0-8: 245 - Error: Unbound value M.show_t 246 - Hint: Did you mean M.show? 247 - [PASS] module_show_works: # M.show_t M.A;; 248 - 249 - === Results: 25/25 tests passed === 250 - SUCCESS: All PPX tests passed! 358 + uri: ./lib/ppx_deriving/dynamic_cmis.json 359 + Failed to unmarshal dynamic_cms from url ./lib/ppx_deriving/dynamic_cmis.json: Failed to fetch dynamic cmis 360 + uri: ./lib/ppx_deriving/show/dynamic_cmis.json 361 + importScripts: ./lib/ppx_deriving/show/ppx_deriving_show.cma.js 362 + node_ppx_test.js: [INFO] Error: TypeError: k is not a function
+225 -204
test/node/node_test.expected
··· 1 1 node_test.js: [INFO] init() 2 2 Initializing findlib 3 3 node_test.js: [INFO] async_get: _opam/findlib_index 4 - node_test.js: [INFO] async_get: _opam/lib/stdlib-shims/META 5 - node_test.js: [INFO] async_get: _opam/lib/sexplib0/META 6 - node_test.js: [INFO] async_get: _opam/lib/ppxlib/META 7 - node_test.js: [INFO] async_get: _opam/lib/ppx_deriving/META 8 - node_test.js: [INFO] async_get: _opam/lib/ppx_derivers/META 9 - node_test.js: [INFO] async_get: _opam/lib/ocaml_intrinsics_kernel/META 10 - node_test.js: [INFO] async_get: _opam/lib/ocaml/stdlib/META 11 - node_test.js: [INFO] async_get: _opam/lib/ocaml/compiler-libs/META 12 - node_test.js: [INFO] async_get: _opam/lib/ocaml-compiler-libs/META 13 - node_test.js: [INFO] async_get: _opam/lib/base/META 14 - Parsed uri: lib/stdlib-shims/META 4 + Loaded findlib_index findlib_index: 10 META files, 0 universes 5 + node_test.js: [INFO] async_get: _opam/./lib/stdlib-shims/META 6 + Parsed uri: ./lib/stdlib-shims/META 15 7 Reading library: stdlib-shims 16 8 Number of children: 0 17 - Parsed uri: lib/sexplib0/META 9 + node_test.js: [INFO] async_get: _opam/./lib/sexplib0/META 10 + Parsed uri: ./lib/sexplib0/META 18 11 Reading library: sexplib0 19 12 Number of children: 0 20 - Parsed uri: lib/ppxlib/META 13 + node_test.js: [INFO] async_get: _opam/./lib/ppxlib/META 14 + Parsed uri: ./lib/ppxlib/META 21 15 Reading library: ppxlib 22 16 Number of children: 11 23 17 Found child: __private__ ··· 56 50 Found child: traverse_builtins 57 51 Reading library: ppxlib.traverse_builtins 58 52 Number of children: 0 59 - Parsed uri: lib/ppx_deriving/META 53 + node_test.js: [INFO] async_get: _opam/./lib/ppx_deriving/META 54 + Parsed uri: ./lib/ppx_deriving/META 60 55 Reading library: ppx_deriving 61 56 Number of children: 12 62 57 Found child: api ··· 95 90 Found child: std 96 91 Reading library: ppx_deriving.std 97 92 Number of children: 0 98 - Parsed uri: lib/ppx_derivers/META 93 + node_test.js: [INFO] async_get: _opam/./lib/ppx_derivers/META 94 + Parsed uri: ./lib/ppx_derivers/META 99 95 Reading library: ppx_derivers 100 96 Number of children: 0 101 - Parsed uri: lib/ocaml_intrinsics_kernel/META 97 + node_test.js: [INFO] async_get: _opam/./lib/ocaml_intrinsics_kernel/META 98 + Parsed uri: ./lib/ocaml_intrinsics_kernel/META 102 99 Reading library: ocaml_intrinsics_kernel 103 100 Number of children: 0 104 - Parsed uri: lib/ocaml/stdlib/META 101 + node_test.js: [INFO] async_get: _opam/./lib/ocaml/stdlib/META 102 + Parsed uri: ./lib/ocaml/stdlib/META 105 103 Reading library: stdlib 106 104 Number of children: 0 107 - Parsed uri: lib/ocaml/compiler-libs/META 105 + node_test.js: [INFO] async_get: _opam/./lib/ocaml/compiler-libs/META 106 + Parsed uri: ./lib/ocaml/compiler-libs/META 108 107 Reading library: compiler-libs 109 108 Number of children: 5 110 109 Found child: common ··· 122 121 Found child: native-toplevel 123 122 Reading library: compiler-libs.native-toplevel 124 123 Number of children: 0 125 - Parsed uri: lib/ocaml-compiler-libs/META 124 + node_test.js: [INFO] async_get: _opam/./lib/ocaml-compiler-libs/META 125 + Parsed uri: ./lib/ocaml-compiler-libs/META 126 126 Reading library: ocaml-compiler-libs 127 127 Number of children: 5 128 128 Found child: bytecomp ··· 140 140 Found child: toplevel 141 141 Reading library: ocaml-compiler-libs.toplevel 142 142 Number of children: 0 143 - Parsed uri: lib/base/META 143 + node_test.js: [INFO] async_get: _opam/./lib/base/META 144 + Parsed uri: ./lib/base/META 144 145 Reading library: base 145 146 Number of children: 3 146 147 Found child: base_internalhash_types ··· 154 155 Number of children: 0 155 156 node_test.js: [INFO] sync_get: _opam/lib/ocaml/dynamic_cmis.json 156 157 node_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/ocaml/ 157 - node_test.js: [INFO] toplevel modules: CamlinternalFormat, CamlinternalLazy, CamlinternalFormatBasics, CamlinternalMod, Std_exit, Stdlib, CamlinternalOO 158 - node_test.js: [INFO] async_get: _opam/lib/ocaml/camlinternalFormat.cmi 158 + node_test.js: [INFO] toplevel modules: Std_exit, CamlinternalFormatBasics, CamlinternalLazy, CamlinternalMod, Stdlib, CamlinternalOO, CamlinternalFormat 159 + node_test.js: [INFO] async_get: _opam/lib/ocaml/std_exit.cmi 160 + node_test.js: [INFO] async_get: _opam/lib/ocaml/camlinternalFormatBasics.cmi 159 161 node_test.js: [INFO] async_get: _opam/lib/ocaml/camlinternalLazy.cmi 160 - node_test.js: [INFO] async_get: _opam/lib/ocaml/camlinternalFormatBasics.cmi 161 162 node_test.js: [INFO] async_get: _opam/lib/ocaml/camlinternalMod.cmi 162 - node_test.js: [INFO] async_get: _opam/lib/ocaml/std_exit.cmi 163 163 node_test.js: [INFO] async_get: _opam/lib/ocaml/stdlib.cmi 164 164 node_test.js: [INFO] async_get: _opam/lib/ocaml/camlinternalOO.cmi 165 + node_test.js: [INFO] async_get: _opam/lib/ocaml/camlinternalFormat.cmi 165 166 node_test.js: [INFO] init() finished 166 167 node_test.js: [INFO] setup() for env default... 168 + node_test.js: [INFO] [ENV] with_env called for default (has_saved_env=false, runtime_values_count=0) 167 169 node_test.js: [INFO] Fetching stdlib__Format.cmi 168 170 169 171 node_test.js: [INFO] sync_get: _opam/lib/ocaml/stdlib__Format.cmi ··· 173 175 error while evaluating #enable "pretty";; 174 176 error while evaluating #disable "shortvar";; 175 177 node_test.js: [INFO] Setup complete 178 + node_test.js: [INFO] [ENV] Env.diff found 92 new idents for default 179 + node_test.js: [INFO] [ENV] Capturing 92 new bindings for env default 180 + >> Fatal error: Continuation_already_taken unbound at toplevel 181 + node_test.js: [INFO] [ENV] could not capture Continuation_already_taken: Misc.Fatal_error 182 + >> Fatal error: Division_by_zero unbound at toplevel 183 + node_test.js: [INFO] [ENV] could not capture Division_by_zero: Misc.Fatal_error 184 + >> Fatal error: Failure unbound at toplevel 185 + node_test.js: [INFO] [ENV] could not capture Failure: Misc.Fatal_error 186 + >> Fatal error: Match_failure unbound at toplevel 187 + node_test.js: [INFO] [ENV] could not capture Match_failure: Misc.Fatal_error 188 + >> Fatal error: Invalid_argument unbound at toplevel 189 + node_test.js: [INFO] [ENV] could not capture Invalid_argument: Misc.Fatal_error 190 + >> Fatal error: End_of_file unbound at toplevel 191 + node_test.js: [INFO] [ENV] could not capture End_of_file: Misc.Fatal_error 192 + >> Fatal error: Assert_failure unbound at toplevel 193 + node_test.js: [INFO] [ENV] could not capture Assert_failure: Misc.Fatal_error 194 + >> Fatal error: Not_found unbound at toplevel 195 + node_test.js: [INFO] [ENV] could not capture Not_found: Misc.Fatal_error 196 + >> Fatal error: Out_of_memory unbound at toplevel 197 + node_test.js: [INFO] [ENV] could not capture Out_of_memory: Misc.Fatal_error 198 + >> Fatal error: Sys_blocked_io unbound at toplevel 199 + node_test.js: [INFO] [ENV] could not capture Sys_blocked_io: Misc.Fatal_error 200 + >> Fatal error: Undefined_recursive_module unbound at toplevel 201 + node_test.js: [INFO] [ENV] could not capture Undefined_recursive_module: Misc.Fatal_error 202 + >> Fatal error: Sys_error unbound at toplevel 203 + node_test.js: [INFO] [ENV] could not capture Sys_error: Misc.Fatal_error 204 + >> Fatal error: Stack_overflow unbound at toplevel 205 + node_test.js: [INFO] [ENV] could not capture Stack_overflow: Misc.Fatal_error 206 + >> Fatal error: CamlinternalFormat unbound at toplevel 207 + node_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 208 + >> Fatal error: CamlinternalLazy unbound at toplevel 209 + node_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 210 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 211 + node_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 212 + >> Fatal error: CamlinternalOO unbound at toplevel 213 + node_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 214 + >> Fatal error: Stdlib unbound at toplevel 215 + node_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 216 + >> Fatal error: Std_exit unbound at toplevel 217 + node_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 218 + >> Fatal error: CamlinternalMod unbound at toplevel 219 + node_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 220 + >> Fatal error: CamlinternalFormat unbound at toplevel 221 + node_test.js: [INFO] [ENV] could not capture CamlinternalFormat: Misc.Fatal_error 222 + >> Fatal error: CamlinternalLazy unbound at toplevel 223 + node_test.js: [INFO] [ENV] could not capture CamlinternalLazy: Misc.Fatal_error 224 + >> Fatal error: CamlinternalFormatBasics unbound at toplevel 225 + node_test.js: [INFO] [ENV] could not capture CamlinternalFormatBasics: Misc.Fatal_error 226 + >> Fatal error: CamlinternalOO unbound at toplevel 227 + node_test.js: [INFO] [ENV] could not capture CamlinternalOO: Misc.Fatal_error 228 + >> Fatal error: Stdlib unbound at toplevel 229 + node_test.js: [INFO] [ENV] could not capture Stdlib: Misc.Fatal_error 230 + >> Fatal error: Std_exit unbound at toplevel 231 + node_test.js: [INFO] [ENV] could not capture Std_exit: Misc.Fatal_error 232 + >> Fatal error: CamlinternalMod unbound at toplevel 233 + node_test.js: [INFO] [ENV] could not capture CamlinternalMod: Misc.Fatal_error 234 + >> Fatal error: Stdlib__Array unbound at toplevel 235 + node_test.js: [INFO] [ENV] could not capture Stdlib__Array: Misc.Fatal_error 236 + >> Fatal error: Stdlib__Atomic unbound at toplevel 237 + node_test.js: [INFO] [ENV] could not capture Stdlib__Atomic: Misc.Fatal_error 238 + >> Fatal error: Stdlib__ArrayLabels unbound at toplevel 239 + node_test.js: [INFO] [ENV] could not capture Stdlib__ArrayLabels: Misc.Fatal_error 240 + >> Fatal error: Stdlib__Bool unbound at toplevel 241 + node_test.js: [INFO] [ENV] could not capture Stdlib__Bool: Misc.Fatal_error 242 + >> Fatal error: Stdlib__Bytes unbound at toplevel 243 + node_test.js: [INFO] [ENV] could not capture Stdlib__Bytes: Misc.Fatal_error 244 + >> Fatal error: Stdlib__Buffer unbound at toplevel 245 + node_test.js: [INFO] [ENV] could not capture Stdlib__Buffer: Misc.Fatal_error 246 + >> Fatal error: Stdlib__Bigarray unbound at toplevel 247 + node_test.js: [INFO] [ENV] could not capture Stdlib__Bigarray: Misc.Fatal_error 248 + >> Fatal error: Stdlib__Arg unbound at toplevel 249 + node_test.js: [INFO] [ENV] could not capture Stdlib__Arg: Misc.Fatal_error 250 + >> Fatal error: Stdlib__Callback unbound at toplevel 251 + node_test.js: [INFO] [ENV] could not capture Stdlib__Callback: Misc.Fatal_error 252 + >> Fatal error: Stdlib__Complex unbound at toplevel 253 + node_test.js: [INFO] [ENV] could not capture Stdlib__Complex: Misc.Fatal_error 254 + >> Fatal error: Stdlib__Char unbound at toplevel 255 + node_test.js: [INFO] [ENV] could not capture Stdlib__Char: Misc.Fatal_error 256 + >> Fatal error: Stdlib__Digest unbound at toplevel 257 + node_test.js: [INFO] [ENV] could not capture Stdlib__Digest: Misc.Fatal_error 258 + >> Fatal error: Stdlib__Dynarray unbound at toplevel 259 + node_test.js: [INFO] [ENV] could not capture Stdlib__Dynarray: Misc.Fatal_error 260 + >> Fatal error: Stdlib__Domain unbound at toplevel 261 + node_test.js: [INFO] [ENV] could not capture Stdlib__Domain: Misc.Fatal_error 262 + >> Fatal error: Stdlib__Condition unbound at toplevel 263 + node_test.js: [INFO] [ENV] could not capture Stdlib__Condition: Misc.Fatal_error 264 + >> Fatal error: Stdlib__Either unbound at toplevel 265 + node_test.js: [INFO] [ENV] could not capture Stdlib__Either: Misc.Fatal_error 266 + >> Fatal error: Stdlib__Filename unbound at toplevel 267 + node_test.js: [INFO] [ENV] could not capture Stdlib__Filename: Misc.Fatal_error 268 + >> Fatal error: Stdlib__Ephemeron unbound at toplevel 269 + node_test.js: [INFO] [ENV] could not capture Stdlib__Ephemeron: Misc.Fatal_error 270 + >> Fatal error: Stdlib__Format unbound at toplevel 271 + node_test.js: [INFO] [ENV] could not capture Stdlib__Format: Misc.Fatal_error 272 + >> Fatal error: Stdlib__Gc unbound at toplevel 273 + node_test.js: [INFO] [ENV] could not capture Stdlib__Gc: Misc.Fatal_error 274 + >> Fatal error: Stdlib__Fun unbound at toplevel 275 + node_test.js: [INFO] [ENV] could not capture Stdlib__Fun: Misc.Fatal_error 276 + >> Fatal error: Stdlib__Float unbound at toplevel 277 + node_test.js: [INFO] [ENV] could not capture Stdlib__Float: Misc.Fatal_error 278 + >> Fatal error: Stdlib__Effect unbound at toplevel 279 + node_test.js: [INFO] [ENV] could not capture Stdlib__Effect: Misc.Fatal_error 280 + >> Fatal error: Stdlib__BytesLabels unbound at toplevel 281 + node_test.js: [INFO] [ENV] could not capture Stdlib__BytesLabels: Misc.Fatal_error 282 + >> Fatal error: Stdlib__Iarray unbound at toplevel 283 + node_test.js: [INFO] [ENV] could not capture Stdlib__Iarray: Misc.Fatal_error 284 + >> Fatal error: Stdlib__Int unbound at toplevel 285 + node_test.js: [INFO] [ENV] could not capture Stdlib__Int: Misc.Fatal_error 286 + >> Fatal error: Stdlib__In_channel unbound at toplevel 287 + node_test.js: [INFO] [ENV] could not capture Stdlib__In_channel: Misc.Fatal_error 288 + >> Fatal error: Stdlib__Int64 unbound at toplevel 289 + node_test.js: [INFO] [ENV] could not capture Stdlib__Int64: Misc.Fatal_error 290 + >> Fatal error: Stdlib__Lexing unbound at toplevel 291 + node_test.js: [INFO] [ENV] could not capture Stdlib__Lexing: Misc.Fatal_error 292 + >> Fatal error: Stdlib__Lazy unbound at toplevel 293 + node_test.js: [INFO] [ENV] could not capture Stdlib__Lazy: Misc.Fatal_error 294 + >> Fatal error: Stdlib__Int32 unbound at toplevel 295 + node_test.js: [INFO] [ENV] could not capture Stdlib__Int32: Misc.Fatal_error 296 + >> Fatal error: Stdlib__ListLabels unbound at toplevel 297 + node_test.js: [INFO] [ENV] could not capture Stdlib__ListLabels: Misc.Fatal_error 298 + >> Fatal error: Stdlib__Marshal unbound at toplevel 299 + node_test.js: [INFO] [ENV] could not capture Stdlib__Marshal: Misc.Fatal_error 300 + >> Fatal error: Stdlib__Map unbound at toplevel 301 + node_test.js: [INFO] [ENV] could not capture Stdlib__Map: Misc.Fatal_error 302 + >> Fatal error: Stdlib__Mutex unbound at toplevel 303 + node_test.js: [INFO] [ENV] could not capture Stdlib__Mutex: Misc.Fatal_error 304 + >> Fatal error: Stdlib__Obj unbound at toplevel 305 + node_test.js: [INFO] [ENV] could not capture Stdlib__Obj: Misc.Fatal_error 306 + >> Fatal error: Stdlib__Nativeint unbound at toplevel 307 + node_test.js: [INFO] [ENV] could not capture Stdlib__Nativeint: Misc.Fatal_error 308 + >> Fatal error: Stdlib__MoreLabels unbound at toplevel 309 + node_test.js: [INFO] [ENV] could not capture Stdlib__MoreLabels: Misc.Fatal_error 310 + >> Fatal error: Stdlib__List unbound at toplevel 311 + node_test.js: [INFO] [ENV] could not capture Stdlib__List: Misc.Fatal_error 312 + >> Fatal error: Stdlib__Option unbound at toplevel 313 + node_test.js: [INFO] [ENV] could not capture Stdlib__Option: Misc.Fatal_error 314 + >> Fatal error: Stdlib__Pair unbound at toplevel 315 + node_test.js: [INFO] [ENV] could not capture Stdlib__Pair: Misc.Fatal_error 316 + >> Fatal error: Stdlib__Out_channel unbound at toplevel 317 + node_test.js: [INFO] [ENV] could not capture Stdlib__Out_channel: Misc.Fatal_error 318 + >> Fatal error: Stdlib__Pqueue unbound at toplevel 319 + node_test.js: [INFO] [ENV] could not capture Stdlib__Pqueue: Misc.Fatal_error 320 + >> Fatal error: Stdlib__Printf unbound at toplevel 321 + node_test.js: [INFO] [ENV] could not capture Stdlib__Printf: Misc.Fatal_error 322 + >> Fatal error: Stdlib__Printexc unbound at toplevel 323 + node_test.js: [INFO] [ENV] could not capture Stdlib__Printexc: Misc.Fatal_error 324 + >> Fatal error: Stdlib__Parsing unbound at toplevel 325 + node_test.js: [INFO] [ENV] could not capture Stdlib__Parsing: Misc.Fatal_error 326 + >> Fatal error: Stdlib__Random unbound at toplevel 327 + node_test.js: [INFO] [ENV] could not capture Stdlib__Random: Misc.Fatal_error 328 + >> Fatal error: Stdlib__Result unbound at toplevel 329 + node_test.js: [INFO] [ENV] could not capture Stdlib__Result: Misc.Fatal_error 330 + >> Fatal error: Stdlib__Repr unbound at toplevel 331 + node_test.js: [INFO] [ENV] could not capture Stdlib__Repr: Misc.Fatal_error 332 + >> Fatal error: Stdlib__Semaphore unbound at toplevel 333 + node_test.js: [INFO] [ENV] could not capture Stdlib__Semaphore: Misc.Fatal_error 334 + >> Fatal error: Stdlib__Set unbound at toplevel 335 + node_test.js: [INFO] [ENV] could not capture Stdlib__Set: Misc.Fatal_error 336 + >> Fatal error: Stdlib__Seq unbound at toplevel 337 + node_test.js: [INFO] [ENV] could not capture Stdlib__Seq: Misc.Fatal_error 338 + >> Fatal error: Stdlib__Scanf unbound at toplevel 339 + node_test.js: [INFO] [ENV] could not capture Stdlib__Scanf: Misc.Fatal_error 340 + >> Fatal error: Stdlib__Queue unbound at toplevel 341 + node_test.js: [INFO] [ENV] could not capture Stdlib__Queue: Misc.Fatal_error 342 + >> Fatal error: Stdlib__StdLabels unbound at toplevel 343 + node_test.js: [INFO] [ENV] could not capture Stdlib__StdLabels: Misc.Fatal_error 344 + >> Fatal error: Stdlib__StringLabels unbound at toplevel 345 + node_test.js: [INFO] [ENV] could not capture Stdlib__StringLabels: Misc.Fatal_error 346 + >> Fatal error: Stdlib__String unbound at toplevel 347 + node_test.js: [INFO] [ENV] could not capture Stdlib__String: Misc.Fatal_error 348 + >> Fatal error: Stdlib__Type unbound at toplevel 349 + node_test.js: [INFO] [ENV] could not capture Stdlib__Type: Misc.Fatal_error 350 + >> Fatal error: Stdlib__Weak unbound at toplevel 351 + node_test.js: [INFO] [ENV] could not capture Stdlib__Weak: Misc.Fatal_error 352 + >> Fatal error: Stdlib__Unit unbound at toplevel 353 + node_test.js: [INFO] [ENV] could not capture Stdlib__Unit: Misc.Fatal_error 354 + >> Fatal error: Stdlib__Uchar unbound at toplevel 355 + node_test.js: [INFO] [ENV] could not capture Stdlib__Uchar: Misc.Fatal_error 356 + >> Fatal error: Stdlib__Sys unbound at toplevel 357 + node_test.js: [INFO] [ENV] could not capture Stdlib__Sys: Misc.Fatal_error 358 + >> Fatal error: Stdlib__Stack unbound at toplevel 359 + node_test.js: [INFO] [ENV] could not capture Stdlib__Stack: Misc.Fatal_error 360 + >> Fatal error: Stdlib__Oo unbound at toplevel 361 + node_test.js: [INFO] [ENV] could not capture Stdlib__Oo: Misc.Fatal_error 362 + >> Fatal error: Stdlib__Hashtbl unbound at toplevel 363 + node_test.js: [INFO] [ENV] could not capture Stdlib__Hashtbl: Misc.Fatal_error 176 364 Loading package base 177 365 lib.dir: None 178 366 Loading package base.base_internalhash_types 179 367 lib.dir: base_internalhash_types 180 - uri: lib/base/base_internalhash_types/dynamic_cmis.json 181 - node_test.js: [INFO] sync_get: _opam/lib/base/base_internalhash_types/dynamic_cmis.json 182 - importScripts: lib/base/base_internalhash_types/base_internalhash_types.cma.js 368 + uri: ./lib/base/base_internalhash_types/dynamic_cmis.json 369 + node_test.js: [INFO] sync_get: _opam/./lib/base/base_internalhash_types/dynamic_cmis.json 370 + importScripts: ./lib/base/base_internalhash_types/base_internalhash_types.cma.js 183 371 Finished loading package base.base_internalhash_types 184 372 Loading package base.shadow_stdlib 185 373 lib.dir: shadow_stdlib 186 - uri: lib/base/shadow_stdlib/dynamic_cmis.json 187 - node_test.js: [INFO] sync_get: _opam/lib/base/shadow_stdlib/dynamic_cmis.json 188 - importScripts: lib/base/shadow_stdlib/shadow_stdlib.cma.js 374 + uri: ./lib/base/shadow_stdlib/dynamic_cmis.json 375 + node_test.js: [INFO] sync_get: _opam/./lib/base/shadow_stdlib/dynamic_cmis.json 376 + importScripts: ./lib/base/shadow_stdlib/shadow_stdlib.cma.js 189 377 Finished loading package base.shadow_stdlib 190 378 Loading package ocaml_intrinsics_kernel 191 379 lib.dir: None 192 - uri: lib/ocaml_intrinsics_kernel/dynamic_cmis.json 193 - node_test.js: [INFO] sync_get: _opam/lib/ocaml_intrinsics_kernel/dynamic_cmis.json 194 - importScripts: lib/ocaml_intrinsics_kernel/ocaml_intrinsics_kernel.cma.js 380 + uri: ./lib/ocaml_intrinsics_kernel/dynamic_cmis.json 381 + node_test.js: [INFO] sync_get: _opam/./lib/ocaml_intrinsics_kernel/dynamic_cmis.json 382 + importScripts: ./lib/ocaml_intrinsics_kernel/ocaml_intrinsics_kernel.cma.js 195 383 Finished loading package ocaml_intrinsics_kernel 196 384 Loading package sexplib0 197 385 lib.dir: None 198 - uri: lib/sexplib0/dynamic_cmis.json 199 - node_test.js: [INFO] sync_get: _opam/lib/sexplib0/dynamic_cmis.json 200 - importScripts: lib/sexplib0/sexplib0.cma.js 201 - Finished loading package sexplib0 202 - uri: lib/base/dynamic_cmis.json 203 - node_test.js: [INFO] sync_get: _opam/lib/base/dynamic_cmis.json 204 - importScripts: lib/base/base.cma.js 205 - Finished loading package base 206 - node_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/base/ 207 - node_test.js: [INFO] toplevel modules: Base 208 - node_test.js: [INFO] async_get: _opam/lib/base/base.cmi 209 - node_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/sexplib0/ 210 - node_test.js: [INFO] toplevel modules: Sexplib0 211 - node_test.js: [INFO] async_get: _opam/lib/sexplib0/sexplib0.cmi 212 - node_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/ocaml_intrinsics_kernel/ 213 - node_test.js: [INFO] toplevel modules: Ocaml_intrinsics_kernel 214 - node_test.js: [INFO] async_get: _opam/lib/ocaml_intrinsics_kernel/ocaml_intrinsics_kernel.cmi 215 - node_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/base/shadow_stdlib/ 216 - node_test.js: [INFO] toplevel modules: Shadow_stdlib 217 - node_test.js: [INFO] async_get: _opam/lib/base/shadow_stdlib/shadow_stdlib.cmi 218 - node_test.js: [INFO] Adding toplevel modules for dynamic cmis from lib/base/base_internalhash_types/ 219 - node_test.js: [INFO] toplevel modules: Base_internalhash_types 220 - node_test.js: [INFO] async_get: _opam/lib/base/base_internalhash_types/base_internalhash_types.cmi 221 - node_test.js: [INFO] setup() finished for env default 222 - node_test.js: [INFO] setup output: OCaml version 5.4.0 223 - Unknown directive enable. 224 - Unknown directive disable. 225 - node_test.js: [INFO] add_cmi 226 - node_test.js: [INFO] prefix: /static/cmis/cell__c1 227 - node_test.js: [INFO] About to type_implementation 228 - node_test.js: [INFO] file_exists: /static/cmis/cell__c1.cmi = true 229 - node_test.js: [INFO] Number of errors: 1 (should be 1) 230 - node_test.js: [INFO] add_cmi 231 - node_test.js: [INFO] prefix: /static/cmis/cell__c1 232 - node_test.js: [INFO] About to type_implementation 233 - node_test.js: [INFO] file_exists: /static/cmis/cell__c1.cmi = true 234 - node_test.js: [INFO] add_cmi 235 - node_test.js: [INFO] prefix: /static/cmis/cell__c2 236 - node_test.js: [INFO] About to type_implementation 237 - node_test.js: [INFO] file_exists: /static/cmis/cell__c2.cmi = true 238 - node_test.js: [INFO] Number of errors1: 1 (should be 1) 239 - node_test.js: [INFO] Number of errors2: 0 (should be 0) 240 - node_test.js: [INFO] completing for id: c_comp1 241 - node_test.js: [INFO] line1: '' (length: 0) 242 - node_test.js: [INFO] src: 'let _ = List.leng' (length: 17) 243 - node_test.js: [INFO] complete after offset: g 244 - node_test.js: [INFO] Fetching stdlib__List.cmi 245 - 246 - node_test.js: [INFO] sync_get: _opam/lib/ocaml/stdlib__List.cmi 247 - node_test.js: [INFO] Completions for 'List.leng': 1 entries 248 - node_test.js: [INFO] - length (Value): 'a list -> int 249 - node_test.js: [INFO] completing for id: c_comp2 250 - node_test.js: [INFO] line1: '' (length: 0) 251 - node_test.js: [INFO] src: ' let _ = List.' (length: 15) 252 - node_test.js: [INFO] complete after offset: . 253 - node_test.js: [INFO] Completions for 'List.': 73 entries 254 - node_test.js: [INFO] - (::) (Constructor): 'a0 * 'a0 list -> 'a0 List.t 255 - node_test.js: [INFO] - ([]) (Constructor): 'a0 List.t 256 - node_test.js: [INFO] - append (Value): 'a list -> 'a list -> 'a list 257 - node_test.js: [INFO] - assoc (Value): 'a -> ('a * 'b) list -> 'b 258 - node_test.js: [INFO] - assoc_opt (Value): 'a -> ('a * 'b) list -> 'b option 259 - node_test.js: [INFO] - assq (Value): 'a -> ('a * 'b) list -> 'b 260 - node_test.js: [INFO] - assq_opt (Value): 'a -> ('a * 'b) list -> 'b option 261 - node_test.js: [INFO] - combine (Value): 'a list -> 'b list -> ('a * 'b) list 262 - node_test.js: [INFO] - compare (Value): ('a -> 'a -> int) -> 'a list -> 'a list -> int 263 - node_test.js: [INFO] - compare_length_with (Value): 'a list -> int -> int 264 - node_test.js: [INFO] - compare_lengths (Value): 'a list -> 'b list -> int 265 - node_test.js: [INFO] - concat (Value): 'a list list -> 'a list 266 - node_test.js: [INFO] - concat_map (Value): ('a -> 'b list) -> 'a list -> 'b list 267 - node_test.js: [INFO] - cons (Value): 'a -> 'a list -> 'a list 268 - node_test.js: [INFO] - drop (Value): int -> 'a list -> 'a list 269 - node_test.js: [INFO] - drop_while (Value): ('a -> bool) -> 'a list -> 'a list 270 - node_test.js: [INFO] - equal (Value): ('a -> 'a -> bool) -> 'a list -> 'a list -> bool 271 - node_test.js: [INFO] - exists (Value): ('a -> bool) -> 'a list -> bool 272 - node_test.js: [INFO] - exists2 (Value): ('a -> 'b -> bool) -> 'a list -> 'b list -> bool 273 - node_test.js: [INFO] - fast_sort (Value): ('a -> 'a -> int) -> 'a list -> 'a list 274 - node_test.js: [INFO] - filter (Value): ('a -> bool) -> 'a list -> 'a list 275 - node_test.js: [INFO] - filter_map (Value): ('a -> 'b option) -> 'a list -> 'b list 276 - node_test.js: [INFO] - filteri (Value): (int -> 'a -> bool) -> 'a list -> 'a list 277 - node_test.js: [INFO] - find (Value): ('a -> bool) -> 'a list -> 'a 278 - node_test.js: [INFO] - find_all (Value): ('a -> bool) -> 'a list -> 'a list 279 - node_test.js: [INFO] - find_index (Value): ('a -> bool) -> 'a list -> int option 280 - node_test.js: [INFO] - find_map (Value): ('a -> 'b option) -> 'a list -> 'b option 281 - node_test.js: [INFO] - find_mapi (Value): (int -> 'a -> 'b option) -> 'a list -> 'b option 282 - node_test.js: [INFO] - find_opt (Value): ('a -> bool) -> 'a list -> 'a option 283 - node_test.js: [INFO] - flatten (Value): 'a list list -> 'a list 284 - node_test.js: [INFO] - fold_left (Value): ('acc -> 'a -> 'acc) -> 'acc -> 'a list -> 'acc 285 - node_test.js: [INFO] - fold_left2 (Value): ('acc -> 'a -> 'b -> 'acc) -> 'acc -> 'a list -> 'b list -> 'acc 286 - node_test.js: [INFO] - fold_left_map (Value): ('acc -> 'a -> 'acc * 'b) -> 'acc -> 'a list -> 'acc * 'b list 287 - node_test.js: [INFO] - fold_right (Value): ('a -> 'acc -> 'acc) -> 'a list -> 'acc -> 'acc 288 - node_test.js: [INFO] - fold_right2 (Value): ('a -> 'b -> 'acc -> 'acc) -> 'a list -> 'b list -> 'acc -> 'acc 289 - node_test.js: [INFO] - for_all (Value): ('a -> bool) -> 'a list -> bool 290 - node_test.js: [INFO] - for_all2 (Value): ('a -> 'b -> bool) -> 'a list -> 'b list -> bool 291 - node_test.js: [INFO] - hd (Value): 'a list -> 'a 292 - node_test.js: [INFO] - init (Value): int -> (int -> 'a) -> 'a list 293 - node_test.js: [INFO] - is_empty (Value): 'a list -> bool 294 - node_test.js: [INFO] - iter (Value): ('a -> unit) -> 'a list -> unit 295 - node_test.js: [INFO] - iter2 (Value): ('a -> 'b -> unit) -> 'a list -> 'b list -> unit 296 - node_test.js: [INFO] - iteri (Value): (int -> 'a -> unit) -> 'a list -> unit 297 - node_test.js: [INFO] - length (Value): 'a list -> int 298 - node_test.js: [INFO] - map (Value): ('a -> 'b) -> 'a list -> 'b list 299 - node_test.js: [INFO] - map2 (Value): ('a -> 'b -> 'c) -> 'a list -> 'b list -> 'c list 300 - node_test.js: [INFO] - mapi (Value): (int -> 'a -> 'b) -> 'a list -> 'b list 301 - node_test.js: [INFO] - mem (Value): 'a -> 'a list -> bool 302 - node_test.js: [INFO] - mem_assoc (Value): 'a -> ('a * 'b) list -> bool 303 - node_test.js: [INFO] - mem_assq (Value): 'a -> ('a * 'b) list -> bool 304 - node_test.js: [INFO] - memq (Value): 'a -> 'a list -> bool 305 - node_test.js: [INFO] - merge (Value): ('a -> 'a -> int) -> 'a list -> 'a list -> 'a list 306 - node_test.js: [INFO] - nth (Value): 'a list -> int -> 'a 307 - node_test.js: [INFO] - nth_opt (Value): 'a list -> int -> 'a option 308 - node_test.js: [INFO] - of_seq (Value): 'a Seq.t -> 'a list 309 - node_test.js: [INFO] - partition (Value): ('a -> bool) -> 'a list -> 'a list * 'a list 310 - node_test.js: [INFO] - partition_map (Value): ('a -> ('b, 'c) Either.t) -> 'a list -> 'b list * 'c list 311 - node_test.js: [INFO] - remove_assoc (Value): 'a -> ('a * 'b) list -> ('a * 'b) list 312 - node_test.js: [INFO] - remove_assq (Value): 'a -> ('a * 'b) list -> ('a * 'b) list 313 - node_test.js: [INFO] - rev (Value): 'a list -> 'a list 314 - node_test.js: [INFO] - rev_append (Value): 'a list -> 'a list -> 'a list 315 - node_test.js: [INFO] - rev_map (Value): ('a -> 'b) -> 'a list -> 'b list 316 - node_test.js: [INFO] - rev_map2 (Value): ('a -> 'b -> 'c) -> 'a list -> 'b list -> 'c list 317 - node_test.js: [INFO] - singleton (Value): 'a -> 'a list 318 - node_test.js: [INFO] - sort (Value): ('a -> 'a -> int) -> 'a list -> 'a list 319 - node_test.js: [INFO] - sort_uniq (Value): ('a -> 'a -> int) -> 'a list -> 'a list 320 - node_test.js: [INFO] - split (Value): ('a * 'b) list -> 'a list * 'b list 321 - node_test.js: [INFO] - stable_sort (Value): ('a -> 'a -> int) -> 'a list -> 'a list 322 - node_test.js: [INFO] - take (Value): int -> 'a list -> 'a list 323 - node_test.js: [INFO] - take_while (Value): ('a -> bool) -> 'a list -> 'a list 324 - node_test.js: [INFO] - tl (Value): 'a list -> 'a list 325 - node_test.js: [INFO] - to_seq (Value): 'a list -> 'a Seq.t 326 - node_test.js: [INFO] - t (Type): type 'a t = 'a list = [] | (::) of 'a * 'a list 327 - node_test.js: [INFO] completing for id: c_comp3 328 - node_test.js: [INFO] line1: '' (length: 0) 329 - node_test.js: [INFO] src: ' let _ = ma' (length: 12) 330 - node_test.js: [INFO] complete after offset: a 331 - node_test.js: [INFO] Completions for 'ma': 3 entries 332 - node_test.js: [INFO] - max (Value): 'a -> 'a -> 'a 333 - node_test.js: [INFO] - max_float (Value): float 334 - node_test.js: [INFO] - max_int (Value): int 335 - node_test.js: [INFO] completing for id: c_comp4 336 - node_test.js: [INFO] line1: '' (length: 0) 337 - node_test.js: [INFO] src: 'let _ = List.leng' (length: 17) 338 - node_test.js: [INFO] complete after offset: g 339 - node_test.js: [INFO] Completions for 'List.leng' (non-toplevel): 1 entries 340 - node_test.js: [INFO] - length (Value): 'a list -> int 341 - node_test.js: [INFO] completing for id: c_comp5 342 - node_test.js: [INFO] line1: '' (length: 0) 343 - node_test.js: [INFO] src: ' let _ = List.leng 344 - let foo=1.0;;' (length: 36) 345 - node_test.js: [INFO] Completions for 'List.leng' (Logical position): 0 entries 346 - node_test.js: [INFO] completing for id: c_comp6 347 - node_test.js: [INFO] line1: '' (length: 0) 348 - node_test.js: [INFO] src: ' let my_var = 42;; 349 - let x = 1 + my_v' (length: 38) 350 - node_test.js: [INFO] complete after offset: v 351 - node_test.js: [INFO] Completions for 'my_v' (toplevel variable): 1 entries 352 - node_test.js: [INFO] - my_var (Value): int 353 - node_test.js: [INFO] completing for id: c_comp7 354 - node_test.js: [INFO] line1: '' (length: 0) 355 - node_test.js: [INFO] src: ' let rec factorial n = if n <= 1 then 1 else n * facto' (length: 55) 356 - node_test.js: [INFO] complete after offset: o 357 - node_test.js: [INFO] Completions for 'facto' (recursive function): 1 entries 358 - node_test.js: [INFO] - factorial (Value): int -> int 359 - node_test.js: [INFO] completing for id: c_comp8 360 - node_test.js: [INFO] line1: '' (length: 0) 361 - node_test.js: [INFO] src: ' String.lengt' (length: 14) 362 - node_test.js: [INFO] complete after offset: t 363 - node_test.js: [INFO] Fetching stdlib__String.cmi 364 - 365 - node_test.js: [INFO] sync_get: _opam/lib/ocaml/stdlib__String.cmi 366 - node_test.js: [INFO] Completions for 'String.lengt' (module path): 1 entries 367 - node_test.js: [INFO] - length (Value): string -> int 368 - node_test.js: [INFO] Success 386 + uri: ./lib/sexplib0/dynamic_cmis.json 387 + node_test.js: [INFO] sync_get: _opam/./lib/sexplib0/dynamic_cmis.json 388 + importScripts: ./lib/sexplib0/sexplib0.cma.js 389 + node_test.js: [ERROR] Error: TypeError: k is not a function