Skip to content

Commit 600a381

Browse files
committed
WIP
1 parent c0a9f7d commit 600a381

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

compiler/tests-toplevel/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(executables
22
(names test_toplevel)
3-
(libraries js_of_ocaml-compiler.dynlink compiler-libs.toplevel)
3+
(libraries js_of_ocaml js_of_ocaml-compiler.dynlink compiler-libs.toplevel)
44
(flags
55
(:standard -linkall))
66
(js_of_ocaml

compiler/tests-toplevel/test_toplevel.ml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
let () =
2+
Printexc.register_printer (fun x ->
3+
match Js_of_ocaml.Js_error.of_exn x with
4+
| None -> None
5+
| Some e ->
6+
if true
7+
then Js_of_ocaml.Js_error.raise_ e
8+
else Some (Js_of_ocaml.Js_error.message e))
9+
110
let () =
211
let content =
312
{|

0 commit comments

Comments
 (0)