- From: Tobie Langel <notifications@github.com>
- Date: Tue, 28 Feb 2017 13:06:46 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 28 February 2017 21:18:49 UTC
tobie commented on this pull request. > +<h6 id="es-default-tojson">default toJSON operation</h5> + +The [=corresponding default operation=] of the “toJSON” operation is the [=default toJSON operation=]. + +<div algorithm> + + To invoke the <dfn export>default toJSON operation</dfn> of [=interface=] |I|, + run the the following steps: + + 1. Let |O| be the <emu-val>this</emu-val> value. + 1. Let |result| be [=!=] [=ObjectCreate=]([=%ObjectPrototype%=]). + 1. If there is an [=inherited interface=] of |I| + that declares a “toJSON” operation, then + 1. Let |super| be the “toJSON” operation of + the closest [=inherited interface=] of |I| + that declares a “toJSON” operation. That's a good point. I think I need to rethink some of this. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/pull/323#discussion_r103551618
Received on Tuesday, 28 February 2017 21:18:49 UTC