Community
Participate
Working Groups
1. try without onException has invalid syntax. It creates a JavaScript try with no finally and no catch. In RBD we would generate an empty catch block. In EGL if you do: try someFunc(); end Then any errors from someFunc() are simply ignored. 2. The code for multiple onException blocks is incorrect. Each is getting its own catch() but there should only be one. Instead of: try{ } catch(e){ if (e instanceof foo){ } } catch(e2){ if (e instanceof bar){ } } It should be: try{ } catch(e){ if (e instanceof foo){ } else if (e instanceof bar){ } } Take a look at StatementGenerator.visit(TryStatement) in the RBD code to see what I mean.
Justin, Thanks for pointing this; I wasn't familiar with the nuances involved in exception handlers. I've ported the logic you referenced and verified the fixes using the FVT tests.
Verified