MZ Object Help: Empty Array when using Object.entries()

I have an object (FontManager._xmlData)...
fontmanager_getxmldata.PNG

And if I output it to the console (like above), this is what I get:
fontmanager_getxmldata_console.PNG


The console shows that this._xmlData has one entry- an object with the key name 270 and its value is another object.

But Object.entries(this._xmlData) (far right, second photo) is an empty array!

Does anybody know why this would be so? It is driving me mad! TIA 🙂
That does seem odd. The only thing that comes to mind is that _xmlData could have its 'get' remove its content when getting the content? Something like this:
Code:
Object.defineProperty(FontManager, '_xmlData', {
    get: function() {
        var value = this.xmlData;
        this.xmlData = []
        return value;
    },
    configurable: true
});
However that would be an odd thing to do. It doesn't follow correct naming convention either.
Object.entries returns only the enumerable properties of the input object: if FontManager._xmlData[270] is not enumerable then it will not be included in the object's entries. Properties defined via Object.defineProperty are non-enumerable by default, maybe that is the problem here? Relevant links:
Thank you @Magnus0808 and @caethyril

I tried to use Object.defineProperty() when I declare FontManager._xmlData (and set it as enumerable) but I was still getting runtime errors.

After lots of troubleshooting- I believe the problem has to do with the browser I am using (Brave), because when testing it on Chrome the error doesn't come up at all.

I appreciate both of your help!

Original thread: https://forums.rpgmakerweb.com/threads/object-help-empty-array-when-using-object-entries.134525/