mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
1232f20ae4
When one TeaVM program calls `eval` and code passed to eval is itself generated with TeaVM, the inner code can throw uncaught Java exception. The outer code could try to catch this exception as a native JavaScript exception, but this is not possible, since the exception is marked as Java exception, and inner scripts's Java class does not inherit java.lang.Throwable of outer script. The solution for each script to generate own tag (Symbol) and only treat JS exception as Java exception when this exception has this tag. |
||
---|---|---|
.. | ||
src | ||
pom.xml |