Skip to content

Commit

Permalink
Js_exn -> Exn
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt committed Oct 20, 2024
1 parent 63fbeb9 commit 29311db
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions packages/artifacts.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ lib/es6/Dom.js
lib/es6/Dom_storage.js
lib/es6/Dom_storage2.js
lib/es6/Error.js
lib/es6/Exn.js
lib/es6/Float.js
lib/es6/Float32Array.js
lib/es6/Float64Array.js
Expand Down Expand Up @@ -114,7 +115,6 @@ lib/es6/Js_blob.js
lib/es6/Js_console.js
lib/es6/Js_date.js
lib/es6/Js_dict.js
lib/es6/Js_exn.js
lib/es6/Js_extern.js
lib/es6/Js_file.js
lib/es6/Js_float.js
Expand Down Expand Up @@ -253,6 +253,7 @@ lib/js/Dom.js
lib/js/Dom_storage.js
lib/js/Dom_storage2.js
lib/js/Error.js
lib/js/Exn.js
lib/js/Float.js
lib/js/Float32Array.js
lib/js/Float64Array.js
Expand Down Expand Up @@ -284,7 +285,6 @@ lib/js/Js_blob.js
lib/js/Js_console.js
lib/js/Js_date.js
lib/js/Js_dict.js
lib/js/Js_exn.js
lib/js/Js_extern.js
lib/js/Js_file.js
lib/js/Js_float.js
Expand Down Expand Up @@ -687,6 +687,12 @@ lib/ocaml/Error.cmt
lib/ocaml/Error.cmti
lib/ocaml/Error.res
lib/ocaml/Error.resi
lib/ocaml/Exn.cmi
lib/ocaml/Exn.cmj
lib/ocaml/Exn.cmt
lib/ocaml/Exn.cmti
lib/ocaml/Exn.res
lib/ocaml/Exn.resi
lib/ocaml/Float.cmi
lib/ocaml/Float.cmj
lib/ocaml/Float.cmt
Expand Down Expand Up @@ -823,12 +829,6 @@ lib/ocaml/Js_dict.cmt
lib/ocaml/Js_dict.cmti
lib/ocaml/Js_dict.res
lib/ocaml/Js_dict.resi
lib/ocaml/Js_exn.cmi
lib/ocaml/Js_exn.cmj
lib/ocaml/Js_exn.cmt
lib/ocaml/Js_exn.cmti
lib/ocaml/Js_exn.res
lib/ocaml/Js_exn.resi
lib/ocaml/Js_extern.cmi
lib/ocaml/Js_extern.cmj
lib/ocaml/Js_extern.cmt
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion runtime/Js.res
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module Nullable = Js_null_undefined
module Null_undefined = Js_null_undefined

/** Provide utilities for dealing with Js exceptions */
module Exn = Js_exn
module Exn = Exn

/** Provide bindings to JS array*/
module Array = Js_array
Expand Down
2 changes: 1 addition & 1 deletion runtime/Js_null.res
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ external getUnsafe: t<'a> => 'a = "%identity"

let getExn = f =>
switch toOption(f) {
| None => Js_exn.raiseError("Js.Null.getExn")
| None => Exn.raiseError("Js.Null.getExn")
| Some(x) => x
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/Js_option.res
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ If given `None`, it throws a `getExn` exception.
*/
let getExn = x =>
switch x {
| None => Js_exn.raiseError("getExn")
| None => Exn.raiseError("getExn")
| Some(x) => x
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/Js_undefined.res
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ external getUnsafe: t<'a> => 'a = "%identity"

let getExn = f =>
switch toOption(f) {
| None => Js_exn.raiseError("Js.Undefined.getExn")
| None => Exn.raiseError("Js.Undefined.getExn")
| Some(x) => x
}

Expand Down
10 changes: 5 additions & 5 deletions tests/tests/src/custom_error_test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tests/tests/src/exception_raise_test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/tests/src/exception_value_test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions tests/tests/src/js_exception_catch_test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29311db

Please sign in to comment.