News for hackers. Stuff that matters.
Re:Use cases for ES6 proxies by zbjornson on Wednesday July 20, 2016 @11:03AM (#12129538)
A lot of these use cases are achievable using Object.defineProperty/Properties. In most cases I think defineProperty even provides a nicer API because it's per-property instead of per-trap. The 'has' trap can't be achieved completely with defineProperty (although you can make a property non-enumerable, which achieves the same goal in some cases).

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:Use cases for ES6 proxies by inian on Wednesday July 20, 2016 @12:47PM (#12130475)
One case where proxies are useful is when you do not know the properties of an Object before hand. Object.defineProperty cannot help you there..