We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a9f7d commit 600a381Copy full SHA for 600a381
compiler/tests-toplevel/dune
@@ -1,6 +1,6 @@
1
(executables
2
(names test_toplevel)
3
- (libraries js_of_ocaml-compiler.dynlink compiler-libs.toplevel)
+ (libraries js_of_ocaml js_of_ocaml-compiler.dynlink compiler-libs.toplevel)
4
(flags
5
(:standard -linkall))
6
(js_of_ocaml
compiler/tests-toplevel/test_toplevel.ml
@@ -1,3 +1,12 @@
+let () =
+ Printexc.register_printer (fun x ->
+ match Js_of_ocaml.Js_error.of_exn x with
+ | None -> None
+ | Some e ->
+ if true
7
+ then Js_of_ocaml.Js_error.raise_ e
8
+ else Some (Js_of_ocaml.Js_error.message e))
9
+
10
let () =
11
let content =
12
{|
0 commit comments