Skip to content

Commit e1c5d29

Browse files
committedNov 23, 2018
Add a special module for js exception
1 parent 6aa6de9 commit e1c5d29

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+330
-301
lines changed
 

Diff for: ‎jscomp/core/js_runtime_modules.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ let block = "Block"
5050
let js_primitive = "Js_primitive"
5151
let module_ = "Caml_module"
5252
let missing_polyfill = "Caml_missing_polyfill"
53-
let exn = "Js_exn"
53+
let caml_js_exceptions = "Caml_js_exceptions"

Diff for: ‎jscomp/core/lam_compile_primitive.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ let translate loc
5252
->
5353
Js_of_lam_exception.make (E.str s)
5454
| Pwrap_exn ->
55-
E.runtime_call Js_runtime_modules.exn "internalToOCamlException" args
55+
E.runtime_call Js_runtime_modules.caml_js_exceptions "internalToOCamlException" args
5656
| Praw_js_function(arg,block) ->
5757
E.raw_js_function arg block
5858
| Praw_js_code_exp s ->

0 commit comments

Comments
 (0)