- From: Anne van Kesteren <notifications@github.com>
- Date: Fri, 18 Jan 2019 01:52:36 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <heycam/webidl/pull/625/review/194018112@github.com>
annevk commented on this pull request. And I guess we should wait with landing this until there's tests? > - |value| to an ECMAScript value. - 1. If |O| implements an interface with a [=named property setter=], then set - |desc|.\[[Writable]] to <emu-val>true</emu-val>, otherwise set it to - <emu-val>false</emu-val>. - 1. If |O| implements an interface with the - [{{LegacyUnenumerableNamedProperties}}] - [=extended attribute=], - then set |desc|.\[[Enumerable]] to <emu-val>false</emu-val>, - otherwise set it to <emu-val>true</emu-val>. - 1. Set |desc|.\[[Configurable]] to <emu-val>true</emu-val>. - 1. Return |desc|. + 1. If |O| [=support named properties|supports named properties=] and + |ignoreNamedProps| is false: + 1. Let |visible| be the result of running the [=named property visibility algorithm=] with + property name |P| and object |O|. + 1. If |visible| is true: Combine these two steps? > - of performing the steps listed in the description of |operation| with |P| as the only argument value. - 1. Let |desc| be a newly created [=Property Descriptor=] with no fields. - 1. Set |desc|.\[[Value]] to the result of [=converted to an ECMAScript value|converting=] - |value| to an ECMAScript value. - 1. If |O| implements an interface with a [=named property setter=], then set - |desc|.\[[Writable]] to <emu-val>true</emu-val>, otherwise set it to - <emu-val>false</emu-val>. - 1. If |O| implements an interface with the - [{{LegacyUnenumerableNamedProperties}}] - [=extended attribute=], - then set |desc|.\[[Enumerable]] to <emu-val>false</emu-val>, - otherwise set it to <emu-val>true</emu-val>. - 1. Set |desc|.\[[Configurable]] to <emu-val>true</emu-val>. - 1. Return |desc|. + 1. If |O| [=support named properties|supports named properties=] and + |ignoreNamedProps| is false: Usually if statements are followed by: ", then:". Or does IDL use a different style? -- 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/625#pullrequestreview-194018112
Received on Friday, 18 January 2019 09:52:58 UTC