Mutation warning [[prototype]] of an object in d3.js?

I work with d3.js for data visualization. I get the warning shown in the following figure. enter image description here Does anyone have an idea why this is happening and how can I solve it? The message indicated in the error follows

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 
+5
source share
1 answer

Does anyone have an idea why this is happening?

Sounds like a d3 error. They seem to use it to subclass arrays here :

 // Until ECMAScript supports array subclassing, prototype injection works well. var d3_subclass = function(object, prototype) { object.__proto__ = prototype; }; 

how can i solve this?

Ignore warning. Or an error file, view this d3.js problem .

+8
source

Source: https://habr.com/ru/post/1213994/


All Articles