Skip to content

Commit

Permalink
Runtime: fix caml_wrap_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Mar 4, 2024
1 parent f52a86a commit a10b92f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/wasm/jslib.wat
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,10 @@
(call $wrap
(call $meth_call
(local.get $exn)
(array.new_data $string $toString (i32.const 0) (i32.const 8))
(call $unwrap
(call $caml_jsstring_of_string
(array.new_data $string $toString
(i32.const 0) (i32.const 8))))
(extern.internalize (call $new_array (i32.const 0))))))))

(func (export "caml_js_error_option_of_exception")
Expand Down

0 comments on commit a10b92f

Please sign in to comment.