avm2: Implement XML.toJSON()

This commit is contained in:
Nathan Adams 2023-08-03 12:03:41 +02:00
parent 1f21f120d6
commit c199316ad3
1 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,10 @@ package {
return this;
}
AS3 function toJSON(k:String) : * {
return this.toJSON(k);
}
public static var ignoreComments:Boolean = true;
public static var ignoreProcessingInstructions:Boolean = true;
public static var ignoreWhitespace:Boolean = true;
@ -199,6 +203,10 @@ package {
return self.AS3::length();
}
prototype.toJSON = function(k:String):* {
return "XML";
};
public static const length:int = 1;
}
}