You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Charts fail to render when Object prototype is frozen #11528
Freeze the Object prototype before rendering a chart: Object.freeze(Object.prototype)
Updating the chart then causes errors such as:
Uncaught TypeError: Cannot assign to read only property 'constructor' of object '#<Object>'
at qe (chart.umd.js:13:22633)
at Object.get (chart.umd.js:13:20541)
at Xe (chart.umd.js:13:22512)
at chart.umd.js:13:21853
at chart.umd.js:13:21893
at qe (chart.umd.js:13:22618)
at Object.get (chart.umd.js:13:21187)
at an (chart.umd.js:13:84298)
at An.buildOrUpdateControllers (chart.umd.js:13:93384)
at An.update (chart.umd.js:13:94319)
Possible solution
No response
Context
To prevent prototype pollution we freeze Object prototype. Chart.js is the only library we use that has an issues with that.
Activity
EricWittrock commentedon Apr 28, 2024
I will work on this issue.
LeeLenaleee commentedon Apr 30, 2024
Resolved in: #11754