- From: Timothy Gu <notifications@github.com>
- Date: Tue, 24 Mar 2020 16:11:23 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <heycam/webidl/pull/862/review/380760140@github.com>
TimothyGu commented on this pull request.
> +
+ 1. If |definition| has an [=indexed property getter=], then:
+ 1. Perform [=!=] [$CreateMethodProperty$](|target|, {{@@iterator}},
+ {{%ArrayProto_values%}}).
+ 1. If |definition| has a [=value iterator=], then:
+ 1. Assert: |definition| has an [=indexed property getter=].
+ 1. Perform [=!=] [$CreateDataProperty$](|target|, "<code>entries</code>",
+ {{%ArrayProto_values%}}).
+ 1. Perform [=!=] [$CreateDataProperty$](|target|, "<code>keys</code>",
+ {{%ArrayProto_keys%}}).
+ 1. Perform [=!=] [$CreateDataProperty$](|target|, "<code>values</code>",
+ {{%ArrayProto_values%}}).
+ 1. Perform [=!=] [$CreateDataProperty$](|target|, "<code>forEach</code>",
+ {{%ArrayProto_forEach%}}).
+ 1. If |definition| has a [=pair iterator=], then:
+ 1. Define the {{@@iterator}} and <code>entries</code> methods:
Is this "define the … methods" thing defined anywhere? Other places are using CreateBuiltinFunction which seems to be what this should do too.
--
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/862#pullrequestreview-380760140
Received on Tuesday, 24 March 2020 23:11:36 UTC