avm2: Throw ArgumentError when trying to construct `new Worker()`

This commit is contained in:
Lord-McSweeney 2023-10-05 17:24:04 -07:00 committed by Nathan Adams
parent 602154b1b7
commit 7254cdeef9
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,9 @@
package flash.system {
public final class Worker {
public function Worker() {}
public function Worker() {
throw new ArgumentError("Error #2012: Worker$ class cannot be instantiated.", 2012);
}
public static function get isSupported():Boolean {
return false;
}