junit: fix exception reporting

This commit is contained in:
Alexey Andreev 2023-11-07 18:01:33 +01:00
parent 21137c57a3
commit eca3dc61f5
2 changed files with 2 additions and 2 deletions

View File

@ -650,7 +650,7 @@ if (typeof Reflect === 'object') {
value: JavaError value: JavaError
}, },
message: { message: {
get: () => { get() {
try { try {
let javaException = this[$rt_javaExceptionProp]; let javaException = this[$rt_javaExceptionProp];
if (typeof javaException === 'object') { if (typeof javaException === 'object') {

View File

@ -52,6 +52,6 @@ final class TestJsEntryPoint {
} }
} }
@JSBody(params = "e", script = "teavmException = e") @JSBody(params = "e", script = "window.teavmException = e")
private static native void saveJavaException(String e); private static native void saveJavaException(String e);
} }