Skip to content

Commit 188efd2

Browse files
committed
not exposing exn_slot_name/exn_slot_id
1 parent 4ceead4 commit 188efd2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

jscomp/stdlib-406/printexc.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ let fields : exn -> string = [%raw{|function(x){
3636

3737

3838

39-
external exn_slot_id : exn -> int = "caml_exn_slot_id"
39+
(* external exn_slot_id : exn -> int = "caml_exn_slot_id" *)
4040

4141
external exn_slot_name : exn -> string = "caml_exn_slot_name"
4242

jscomp/stdlib-406/printexc.mli

+3-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ val get_raw_backtrace_next_slot :
325325
*)
326326

327327
(** {1 Exception slots} *)
328-
328+
#if BS then
329+
#else
329330
val exn_slot_id: exn -> int
330331
(** [Printexc.exn_slot_id] returns an integer which uniquely identifies
331332
the constructor used to create the exception value [exn]
@@ -340,3 +341,4 @@ val exn_slot_name: exn -> string
340341
341342
@since 4.02.0
342343
*)
344+
#end

0 commit comments

Comments
 (0)