Skip to content

Commit ec1d8ab

Browse files
committed
chore: convert exceptions
1 parent 0eb0a28 commit ec1d8ab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
alias(libs.plugins.blossom)
55
}
66

7-
val thisVersion = "0.1.0"
7+
val thisVersion = "0.1.1"
88

99
group = "run.slicer"
1010
version = "$thisVersion-${libs.versions.procyon.get()}"

src/main/java/run/slicer/procyon/Main.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.teavm.interop.AsyncCallback;
1111
import org.teavm.jso.JSBody;
1212
import org.teavm.jso.JSByRef;
13+
import org.teavm.jso.JSExceptions;
1314
import org.teavm.jso.JSExport;
1415
import org.teavm.jso.core.JSObjects;
1516
import org.teavm.jso.core.JSPromise;
@@ -45,7 +46,7 @@ private static JSPromise<JSString> decompile0(String name, Options options) {
4546

4647
resolve.accept(JSString.valueOf(writer.toString()));
4748
} catch (Throwable e) {
48-
reject.accept(e);
49+
reject.accept(JSExceptions.getJSException(e));
4950
}
5051
}).start();
5152
});

0 commit comments

Comments
 (0)