Skip to content

Commit

Permalink
avm2: Fix a few XML prototype method signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepycatcoding authored and adrian17 committed May 21, 2024
1 parent 3949110 commit 671be1a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/src/avm2/globals/XML.as
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ package {
self.AS3::setName(name);
};

prototype.namespace = function(prefix:String = null):* {
prototype.namespace = function(prefix:* = null):* {
var self:XML = this;
return self.AS3::namespace.apply(self, arguments);
};
Expand Down Expand Up @@ -162,7 +162,7 @@ package {
return self.AS3::child(name);
};

prototype.childIndex = function():XMLList {
prototype.childIndex = function():int {
var self:XML = this;
return self.AS3::childIndex();
};
Expand Down Expand Up @@ -254,27 +254,27 @@ package {
return self.AS3::comments();
}

prototype.processingInstructions = function(name:String = "*"):XMLList {
prototype.processingInstructions = function(name:* = "*"):XMLList {
var self:XML = this;
return self.AS3::processingInstructions(name);
}

prototype.insertChildAfter = function(child1:Object, child2:Object):* {
prototype.insertChildAfter = function(child1:*, child2:*):* {
var self:XML = this;
return self.AS3::insertChildAfter(child1, child2);
}

prototype.insertChildBefore = function(child1:Object, child2:Object):* {
prototype.insertChildBefore = function(child1:*, child2:*):* {
var self:XML = this;
return self.AS3::insertChildBefore(child1, child2);
}

prototype.replace = function(propertyName:Object, value:*):XML {
prototype.replace = function(propertyName:*, value:*):XML {
var self:XML = this;
return self.AS3::replace(propertyName, value);
}

prototype.setChildren = function(value:Object):XML {
prototype.setChildren = function(value:*):XML {
var self:XML = this;
return self.AS3::setChildren(value);
}
Expand Down

0 comments on commit 671be1a

Please sign in to comment.