- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 12 Mar 2020 12:26:33 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 12 March 2020 19:26:46 UTC
domenic commented on this pull request. > + 1. If |P| is "length", then return the result of + [=observable array exotic object/setting the length=] given |handler| and |V|. + 1. If |P| [=is an array index=], then return the result of + [=observable array exotic object/setting the indexed value=] given |handler|, |P|, and |V|. + 1. Return [=?=] |O|.\[[Set]](|P|, |V|, |Receiver|). +</div> + +<h4 id="es-observable-array-abstract-operations">Abstract operations</h4> + +<div algorithm> + To <dfn for="observable array exotic object" lt="set the length|setting the length">set the length</dfn> + of an observable array exotic object given |handler| and |newLen|: + + 1. Set |newLen| to [=?=] [$ToUint32$](|newLen|). + 1. Let |numberLen| be [=?=] [$ToNumber$](|newLen|). + 1. If |newLen| ≠ |numberLen|, then throw a {{RangeError}} exception. My reading of the corresponding ES section is that -0 and +0 do not test equal. In particular both variables end up as doubles, per the defaults in https://tc39.es/ecma262/#sec-mathematical-operations. -- 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_r391842769
Received on Thursday, 12 March 2020 19:26:46 UTC