mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -08:00
junit: fix exception reporting
This commit is contained in:
parent
21137c57a3
commit
eca3dc61f5
|
@ -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') {
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user