Skip to content

Commit

Permalink
avm2: Implement Loader.uncaughtErrorEvents
Browse files Browse the repository at this point in the history
This can just delegate to LoaderInfo
  • Loading branch information
Aaron1011 committed Aug 1, 2023
1 parent 2621dd7 commit 66eadc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/avm2/globals/flash/display/Loader.as
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}
}

0 comments on commit 66eadc8

Please sign in to comment.