- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 02 Mar 2017 09:01:12 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <heycam/webidl/pull/323/review/24785376@github.com>
domenic commented on this pull request. > + + 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. + 1. Set |result| to [=?=] [=Call=](|super|, |O|). + 1. If Type(|result|) is not Object, return |result|. + 1. For each [=exposed=] [=regular attribute=] |attr| that is an [=interface member=] of |I|: + 1. Let |id| be |attr|’s [=identifier=] [=converted to an ECMAScript value=]. + 1. Let |value| be [=?=] [=Get=](|O|, |id|). I haven't had time yet to review this PR (hopefully today), but the two proposed phrasings are identical. If I understand the context correctly, I think you want something like "Let _value_ be the result of running the steps specified for the getter of the IDL attribute _id_ on object _O_". But please read that skeptically as I am jumping into the middle here without much context. -- 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_r103975079
Received on Thursday, 2 March 2017 17:02:12 UTC