avm2: Implement Loader.uncaughtErrorEvents

This can just delegate to LoaderInfo
This commit is contained in:
Aaron Hill 2023-07-31 16:42:00 -04:00
parent 2621dd78ee
commit 66eadc8f7c
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,7 @@ package flash.display {
import flash.system.LoaderContext;
import flash.utils.ByteArray;
import flash.net.URLRequest;
import flash.events.UncaughtErrorEvents;
import __ruffle__.stub_method;
internal var _contentLoaderInfo: LoaderInfo;
@ -56,5 +57,9 @@ package flash.display {
override public function setChildIndex(child:DisplayObject, index:int):void {
throw new IllegalOperationError("Error #2069: The Loader class does not implement this method.", 2069);
}
public function get uncaughtErrorEvents():UncaughtErrorEvents {
return this.contentLoaderInfo.uncaughtErrorEvents;
}
}
}