avm2: Fix QName's prototype

This commit is contained in:
Lord-McSweeney 2023-03-31 20:54:41 -07:00 committed by Mike Welsh
parent 86395f194f
commit 18bff18d0b
1 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,8 @@
package {
[Ruffle(InstanceAllocator)]
public final class QName {
public static const length = 2;
public function QName(uri:* = undefined, localName:*=undefined) {
this.init(uri, localName)
}
@ -19,12 +21,7 @@ package {
var self:QName = this;
return self.AS3::toString();
}
prototype.valueOf = function():QName {
var self:QName = this;
return self.AS3::valueOf();
}
prototype.setPropertyIsEnumerable("toString", false);
prototype.setPropertyIsEnumerable("valueOf", false);
}
}
}