diff options
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/embindtest/embindtest.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unotest/source/embindtest/embindtest.js b/unotest/source/embindtest/embindtest.js index 8da18fbb7d96..08bded0c81f8 100644 --- a/unotest/source/embindtest/embindtest.js +++ b/unotest/source/embindtest/embindtest.js @@ -540,9 +540,14 @@ Module.addOnPostRun(function() { try { test.throwRuntimeException(); } catch (e) { + incrementExceptionRefcount(e); + //TODO, needed when building with JS-based -fexceptions, see + // <https://github.com/emscripten-core/emscripten/issues/17115> "[EH] Fix inconsistency + // of refcounting in Emscripten EH vs. Wasm EH" console.assert(e.name === 'com::sun::star::uno::RuntimeException'); console.assert(e.message === undefined); //TODO //TODO: console.assert(e.Message.startsWith('test')); + decrementExceptionRefcount(e); } const obj = { implRefcount: 0, |