-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
Steps to reproduce
- Decompile MobileConcepts45.dll (obtained from CyberGhost download and installation) to IL
- Fail to compile to DLL target with
ilasm.exe .\MobileConcepts45.il /DLL /noautoinherit - Modify
MobileConcepts45.ilfile to match ECMA-335 (6th edition) §11.19.4 by removingcatchkeyword - All applicable (try/filter/catch) statements should now read as follows:
.try {
// ...
}
filter {
// ...
}
{
// ...
}- Successfully compile to DLL target with
ilasm.exe .\MobileConcepts45.il /DLL /noautoinherit
Error message shown
.\MobileConcepts45.il(62976) : error : syntax error at token 'catch' in: catch
Details
- ILSpy 8.1.0.7455
- ilasm v. 4.8.9105.0 (Included in Visual Studio 2022 v. 17.6.3)
- Windows 11 development environment (provided by Microsoft)
Resolution
I believe to resolve this for the future, ILSpy should no longer output the catch keyword when preceded directly by a filter statement in order to comply with ECMA-335.