konsoletyper / teavm

Compiles Java bytecode to JavaScript, WebAssembly and C
https://teavm.org
Apache License 2.0
2.55k stars 260 forks source link

Fix variable of catch-statement not being properly minimized in JS runtime #891

Closed tryone144 closed 4 months ago

tryone144 commented 4 months ago

The JavaScript backend did not properly handle the catch-variable (the e in try {} catch (e) {}) when outputting in minifying mode.

(The use of e in the catch block was minified however. This led to xy is undefined exceptions being thrown in the runtime exception handler and tests silently failing without ever completing.)