Francisco Tolmasky (2017-01-06T19:11:10.000Z)
Is there any position on whether getOwnPropertyDescriptor should not have
side-effects? I ask because some v8 getOwnPropertyDescriptor *do* have side
effects (for example, Object.getOwnPropertyDescriptor(new Error, “stack”)
will call Error.prepareStackTrace (it used to not)). Currently I
treat getOwnPropertyDescriptor as a “safe” way to observe an object —
(unlike say calling each member on an object which could set off getters).

-- 
Francisco Tolmasky
www.tolmasky.com
tolmasky at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170106/0547b87a/attachment.html>
forbes at lindesay.co.uk (2017-01-08T05:25:57.090Z)
Is there any position on whether `getOwnPropertyDescriptor` should not have
side-effects? I ask because some v8 `getOwnPropertyDescriptor` *do* have side
effects (for example, `Object.getOwnPropertyDescriptor(new Error, “stack”)`
will call `Error.prepareStackTrace` (it used to not)). Currently I
treat `getOwnPropertyDescriptor` as a “safe” way to observe an object —
(unlike say calling each member on an object which could set off getters).