Skip to content

Commit 6fe583f

Browse files
committed
Rename function to Js_exn.anyToExnInternal
1 parent 156f82c commit 6fe583f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jscomp/others/js_exn.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ external makeError : string -> error = "Error" [@@bs.new]
4545
external isCamlExceptionOrOpenVariant :
4646
'a -> bool = "caml_is_extension"
4747

48-
let unsafeAnyToExn obj =
48+
let anyToExnInternal obj =
4949
if isCamlExceptionOrOpenVariant obj then
5050
(Obj.magic obj : exn)
5151
else

jscomp/others/js_exn.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ external isCamlExceptionOrOpenVariant:
4343
'a -> bool = "caml_is_extension"
4444
(** internal use only *)
4545

46-
val unsafeAnyToExn : 'a -> exn
46+
val anyToExnInternal: 'a -> exn
4747
(** [unsafeAnyToExn obj] will take any value [obj] and wrap it
4848
* in a Js.Exn.Error if given value is not an exn already. If
4949
* [obj] is an exn, it will return [obj] without any changes.

0 commit comments

Comments
 (0)