Skip to content

Monkey-patch madness in JS

blog.getjaco.com
4 pointsBlueHotDog22 comments
On HN

Comments

One method could be writing ES5 define property for the methods you depend on, to make sure they are not modified.

Interesting idea! You could configure it to be non writable.

Unfortunately there is a big downside - as a third party plugin you're not really allowed to destructively change the hosted environment.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.