I want to unable the overriding option on Array.prototype.push
on my web application.
I have tried to do so with Object.defineProperties(Array.prototype, "push", {writable: false});
But got an Uncaught TypeError: Property description must be an object: p
What did I do wrong?
Thanks