[whatwg] [html5] Question on the structured cloning algorithm
Stewart Brodie
stewart.brodie at antplc.com
Thu May 26 03:39:25 PDT 2011
Ian Hickson <ian at hixie.ch> wrote:
> On Tue, 24 May 2011, Stewart Brodie wrote:
> >
> > Do getters need to be called to obtain a value which can be stored
> > (after being cloned itself) in the result?
>
> I'm not sure I follow the question. Can you elaborate?
Are getters called during cloning? i.e. what do I get if I clone this:
{ get a() { return 1 } }
Do I get { a: 1 } or do I get {} ?
--
Stewart Brodie
Team Leader - ANT Galio Browser
ANT Software Limited
More information about the whatwg
mailing list