If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issues#1103 wrong code in AS3
Author:
refgd
refgdDate created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed 

attached the example SWF file.
original code below:
public static function array2Map(_arg1:Object, _arg2:String, _arg3:Class):Object
{
var _local5:Object;
var _local4:Object = new _arg3();
for each (_local5 in _arg1)
{
_local4[_local5[_arg2]] = _local5;
}
return _local4;
}
after decompiler, the code become:
public static function array2Map(_arg1:Object, _arg2:String, _arg3:Class) : Object
{
var _local5:Object = null;
var _local4:Object = new _arg3();
for each(_local4[_local5[_arg2]] in _arg1)
{
}
return _local4;
}
Untitled-1.swf (1 KiB)it should be fixed in nightly 1209
State: new→upgraded
I close this issue due to inactivity. Please create new issue if problem still exists.
State: upgraded→closed

