mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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
|
||||
},
|
||||
message: {
|
||||
get: () => {
|
||||
get() {
|
||||
try {
|
||||
let javaException = this[$rt_javaExceptionProp];
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user