Re:Object.observe withdrawn from TC39
by pipeep on Tuesday November 03, 2015 @12:16AM
(#10497710)
It's possible if you also translate all of the code that uses the polyfilled object by converting every MemberExpression to a function call, but that's probably a nightmare for performance.
[ Parent
| on HN ]
what happens when i add a property to the object that i'm proxying after the Proxy is already instantiated? you wouldn't be able to detect the addition and add getters/setters for the property unless you use some sort of O.o or dirty checking on the underlying object.
see https://github.com/bcherny/auditable for an implementation, sans O.o.