- From: Tab Atkins Jr. <notifications@github.com>
- Date: Wed, 04 May 2022 13:02:27 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/webidl/pull/1138/review/962505053@github.com>
@tabatkins commented on this pull request. > @@ -12995,207 +12872,301 @@ with the following characteristics: The [=map size getter=] is a [=built-in function object=] whose behavior when invoked is as follows: - 1. Let |O| be the <emu-val>this</emu-val> value. - 1. If |O| [=is a platform object=], - then [=perform a security check=], passing: - * the platform object |O|, - * the identifier "<code>size</code>", and - * the type "<code>getter</code>". - 1. If |O| does not [=implement=] <var ignore>A</var>, then [=ECMAScript/throw=] a {{ECMAScript/TypeError}}. - 1. Let |map| be the {{ECMAScript/Map}} object that is the value of |O|’s \[[BackingMap]] [=internal slot=]. - 1. Return [=!=] <a abstract-op>Get</a>(|map|, "<code>size</code>"). + 1. Let |O| be the <emu-val>this</emu-val> value, [=implementation-checked=] against <var ignore>a</var> with identifier "<code>size</code>" and type "<code>getter</code>". + 1. Let |map| be the [=map entries=] of the IDL value + that represents a reference to |O|. + 1. Return |map|'s [=map/size=], [=converted to an ECMAScript value=]. </div> Unsure what you mean here - this is the same pattern used for the algos on all the methods. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/pull/1138#discussion_r865293104 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/pull/1138/review/962505053@github.com>
Received on Wednesday, 4 May 2022 20:02:39 UTC