Skip to content

Commit

Permalink
avm2: Throw ArgumentError when trying to construct new Worker()
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-McSweeney authored and Dinnerbone committed Oct 9, 2023
1 parent 602154b commit 7254cde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/avm2/globals/flash/system/Worker.as
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 7254cde

Please sign in to comment.