App Crash on AIR 17 + iOS using "arguments" object
I found application crash on AIR 17 beta + iOS (AOT build).
package
{
import flash.display.Sprite;
public class SimpleMobileApplication extends Sprite
{
public function SimpleMobileApplication()
{
stage.addChild(new BaseView());
}
}
}
import flash.display.Shape;
import flash.display.Sprite;
import flash.events.MouseEvent;
class BaseView extends Sprite
{
public function BaseView()
{
var s:Shape = new Shape();
s.graphics.beginFill (0xFFAAAA, 1.0);
s.graphics.drawRect(0,0,100,100);
addChild(s);
addEventListener(MouseEvent.MOUSE_DOWN, doSomething);
}
public function doSomething(e:*):void
{
}
}
class ExtendedView extends BaseView
{
public override function doSomething(e:*):void
{
trace(arguments);
}
}
When tap a red rect, application will crash!
AIR17 + iOS(AOT): crash
AIR17 + iOS(no AOT): no problem
AIR14 + iOS(AOT): no problem
I found workaround for this problem.
I remove arguments object in all overridden functions, and now works fine.
Could you please fix this problem in future versions of AIR?
