- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 12 Mar 2020 12:29:54 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 12 March 2020 19:30:06 UTC
domenic commented on this pull request.
> +
+<div algorithm="observable array exotic object deleteProperty trap">
+ The steps for the <code>deleteProperty</code> proxy trap for
+ [=observable array exotic objects=], given |O| and |P|, are as follows:
+
+ 1. Let |handler| be the <emu-val>this</emu-val> value.
+ 1. If |P| is "length", then return <emu-val>false</emu-val>.
+ 1. If |P| [=is an array index=], then:
+ 1. Let |oldLen| be |handler|.\[[BackingList]]'s [=list/size=].
+ 1. Let |index| be [=!=] [$ToUint32$](|P|).
+ 1. If |index| ≠ |oldLen| − 1, then return
+ <emu-val>false</emu-val>.
+ 1. Perform the algorithm steps given by |handler|.\[[DeleteAlgorithm]], given
+ |handler|.\[[BackingList]][|index|] and |index|.
+ 1. [=list/Remove=] the last item from |handler|.\[[BackingList]].
+ 1. Perform [=!=] |O|.\[[DefineOwnProperty]]("length", PropertyDescriptor{\[[Value]]: |oldLen| − 1}).
Agreed, this is leftover from the earlier approach.
--
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/840#discussion_r391844443
Received on Thursday, 12 March 2020 19:30:06 UTC