jindw / xmldom

A PURE JS W3C Standard based(XML DOM Level2 CORE) DOMParser and XMLSerializer.
Other
819 stars 265 forks source link

dom.js causes a warning when used in Gnome-Maps. #202

Open ht990332 opened 7 years ago

ht990332 commented 7 years ago

I am seeing a warning when starting Gnome Maps which is a project that imports xmldom code. The Gnome developer pointed me to this repository where the code was pulled from. This is the javascript warning (Gjs is the gnome javascript interpreter which uses Mozilla SpiderMoney as a backend):

Gjs-Message: JS WARNING: [resource:///org/gnome/Maps/js/xmldom/dom.js 21]: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create

Thank you.