I see, so you're relying on the engine reading the handler object during the moment that the user of my `obj` will try to read `obj`, so if the engine tries to read something in the handler (that we haven't whitelisted) due to what the user is doing with `obj` then we throw the error. If the engine were to read these all in advance, this would cause a problem. Are we sure that all engines don't read the handler spec in advance?
*/#!/*JoePea On Sat, Mar 24, 2018 at 2:59 PM, Oriol _ <[email protected]> wrote: > Hi Joe, I used a 2nd proxy as the handler in order to only allow the > desired traps. > > Sure, I could have defined all blacklisted traps in an ordinary object, > and make them throw an error. > > But this wouldn't be future-proof in case new traps are eventually added. > Whitelisting is safer. > > -- Oriol >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

