Embind: throwUnoException from JS
commit75fe059974dcb80c3f78110c73ab799afc6f4ca3
authorStephan Bergmann <stephan.bergmann@allotropia.de>
Thu, 18 Apr 2024 13:16:01 +0000 (18 15:16 +0200)
committerStephan Bergmann <stephan.bergmann@allotropia.de>
Thu, 18 Apr 2024 20:16:33 +0000 (18 22:16 +0200)
treed1b9141da932ed9dc8b076bdf2c733de715f2d52
parent4322ec8f8f89549410d108551d21f5058b1c8261
Embind: throwUnoException from JS

(If throwUnoException directly took a css::uno::Any argument, JS client code
would need to create one with `new Module.uno_Any(...)` and call .delete() on
it, but there is no place where it could call .delete(), so make
throwUnoException take two arguments instead and assemble the css::uno::Any on
the C++ side.)

Change-Id: Iae4ae6af804354d5cf752115e272b79d61427440
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166253
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
static/source/unoembindhelpers/PrimaryBindings.cxx
unotest/source/embindtest/embindtest.cxx
unotest/source/embindtest/embindtest.js