avm2: Throw ArgumentError when trying to construct `new Worker()`
This commit is contained in:
parent
602154b1b7
commit
7254cdeef9
|
@ -1,6 +1,8 @@
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue